Navigation: Main Index | Chapter Guide
This folder contains one runnable Java 8 program for each of the 30 OOP practice exercises.
javac 01-Student.java
java Student| No. | File | Exercise |
|---|---|---|
| 1 | 01-Student.java | Student class and objects |
| 2 | 02-Car.java | Car class with methods |
| 3 | 03-Employee.java | Employee details |
| 4 | 04-Rectangle.java | Rectangle area and perimeter |
| 5 | 05-BankAccount.java | Encapsulated bank account |
| 6 | 06-Person.java | Parameterized constructor |
| 7 | 07-ThisKeyword.java | this keyword |
| 8 | 08-StaticVsInstance.java | Static and instance variables |
| 9 | 09-ConstructorOverloading.java | Constructor overloading |
| 10 | 10-FinalKeyword.java | Final variables and methods |
| 11 | 11-SingleInheritance.java | Animal and Dog inheritance |
| 12 | 12-MultilevelInheritance.java | Person, Employee, and Manager |
| 13 | 13-HierarchicalInheritance.java | Vehicle, Car, and Bike |
| 14 | 14-MethodOverriding.java | Overridden method |
| 15 | 15-RuntimePolymorphism.java | Animal polymorphism |
| 16 | 16-Calculator.java | Method overloading |
| 17 | 17-AbstractShape.java | Abstract Shape, Circle, and Rectangle |
| 18 | 18-PaymentInterface.java | Payment implementations |
| 19 | 19-MultipleInheritance.java | Multiple interfaces |
| 20 | 20-SuperKeyword.java | super variables, methods, constructors |
| 21 | 21-BankingSystem.java | Banking management system |
| 22 | 22-EmployeeManagement.java | Employee types and salaries |
| 23 | 23-LibraryManagement.java | Library management system |
| 24 | 24-VehicleRental.java | Vehicle rental system |
| 25 | 25-ShoppingSystem.java | Shopping system |
| 26 | 26-HospitalManagement.java | Hospital management system |
| 27 | 27-PaymentGateway.java | Interface-based payment gateway |
| 28 | 28-Relationships.java | Association, aggregation, composition |
| 29 | 29-ShapeManagement.java | Polymorphic shape area system |
| 30 | 30-StudentManagement.java | Complete student management system |