Day 12 focuses on advanced Object-Oriented Programming concepts in Java. The practice programs cover inheritance, method overriding, the super keyword, abstract classes, interfaces, and polymorphism.
super keywordsuper KeywordDay-12-OOP-Advanced/
│
├── Questions/
│ └── Questions.txt
│
├── Solutions/
│ ├── Q01_Single_Inheritance.java
│ ├── Q02_Multilevel_Inheritance.java
│ ├── Q03_Hierarchical_Inheritance.java
│ ├── Q04_Method_Overriding.java
│ ├── Q05_Super_Keyword.java
│ ├── Q06_Abstract_Class.java
│ ├── Q07_Abstract_Method.java
│ ├── Q08_Interface.java
│ ├── Q09_Interface_Multiple_Inheritance.java
│ └── Q10_Polymorphism.java
│
├── Screenshots/
│ ├── Output_1.png
│ ├── Output_2.png
│ ├── Output_3.png
│ ├── Output_4.png
│ ├── Output_5.png
│ ├── Output_6.png
│ ├── Output_7.png
│ ├── Output_8.png
│ ├── Output_9.png
│ └── Output_10.png
│
└── README.md
Create a parent Animal class and a child Dog class using inheritance.
Solution: Q01_Single_Inheritance.java
Output:

Implement inheritance through Animal, Dog, and Puppy classes.
Solution: Q02_Multilevel_Inheritance.java
Output:

Implement multiple child classes using a common parent class.
Solution: Q03_Hierarchical_Inheritance.java
Output:

Implement method overriding using parent and child classes.
Solution: Q04_Method_Overriding.java
Output:

Use the super keyword to access a parent class variable.
Solution: Q05_Super_Keyword.java
Output:

Create an abstract class and implement its abstract method.
Solution: Q06_Abstract_Class.java
Output:

Implement an abstract method in a child class.
Solution: Q07_Abstract_Method.java
Output:

Create and implement a Java interface.
Solution: Q08_Interface.java
Output:

Implement two interfaces in a single class.
Solution: Q09_Interface_Multiple_Inheritance.java
Output:

Implement runtime polymorphism using parent class references.
Solution: Q10_Polymorphism.java
Output:

Open PowerShell and go to the Solutions folder:
cd "C:\Disk D\Full Stack fol\JAVA-Daily-Tasks\Day-12-OOP-Advanced\Solutions"
Compile all Java programs:
javac *.java
Run the programs individually:
java Q01_Single_Inheritance
java Q02_Multilevel_Inheritance
java Q03_Hierarchical_Inheritance
java Q04_Method_Overriding
java Q05_Super_Keyword
java Q06_Abstract_Class
java Q07_Abstract_Method
java Q08_Interface
java Q09_Interface_Multiple_Inheritance
java Q10_Polymorphism
| No. | Topic | Solution |
|---|---|---|
| Q01 | Single Inheritance | Q01_Single_Inheritance.java |
| Q02 | Multilevel Inheritance | Q02_Multilevel_Inheritance.java |
| Q03 | Hierarchical Inheritance | Q03_Hierarchical_Inheritance.java |
| Q04 | Method Overriding | Q04_Method_Overriding.java |
| Q05 | Super Keyword | Q05_Super_Keyword.java |
| Q06 | Abstract Class | Q06_Abstract_Class.java |
| Q07 | Abstract Method | Q07_Abstract_Method.java |
| Q08 | Interface | Q08_Interface.java |
| Q09 | Multiple Interfaces | Q09_Interface_Multiple_Inheritance.java |
| Q10 | Polymorphism | Q10_Polymorphism.java |
Through these programs, I practiced:
super keyword| Day | Topic | Status |
|---|---|---|
| Day 01 | Java Basics | Completed |
| Day 02 | Conditional Statements | Completed |
| Day 03 | Real-World Conditions | Completed |
| Day 04 | Loops | Completed |
| Day 05 | Number Programs | Completed |
| Day 06 | Pattern Programs | Completed |
| Day 07 | Arrays Basics | Completed |
| Day 08 | Arrays Problem Solving | Completed |
| Day 09 | String Basics | Completed |
| Day 10 | Methods | Completed |
| Day 11 | OOP Basics | Completed |
| Day 12 | OOP Advanced | Completed |
The goal of this daily Java practice is to strengthen Java fundamentals, Object-Oriented Programming concepts, logical thinking, problem-solving skills, and technical interview preparation.
Day 12 - OOP Advanced → Completed ✅
Next: Day 13 - Collections