đ§ Object-Oriented Programming (OOP) Topics
1. đ§ą OOP Four Pillars
-
Abstraction
What is abstraction in OOP? -
Polymorphism
What is polymorphism in OOP? -
Encapsulation
What is encapsulation in OOP? -
Inheritance
What is inheritance in OOP?
2. đ Overloading vs Overriding
- What is the difference between method overloading and method overriding?
3. âī¸ Method Overriding vs Constructor Overriding
- How is method overriding different from constructor overriding?
- Can constructors be overridden in OOP?
4. đī¸ Constructor
- What is a constructor in OOP?
- What are the types of constructors?
- When is a constructor called?
- Can a constructor be private?
5. đ§Š Abstract Class vs Interface
- What is the difference between an abstract class and an interface?
- When should you use an abstract class vs an interface?
6. đ Access Modifiers
- What are access modifiers in OOP?
- What is the difference between public, private, and protected access modifiers?
7. đ Private vs Protected
- What is the difference between private and protected in OOP?
8. ⥠Static
- What is the meaning of the static keyword in OOP?
- What are static methods, static variables, and static blocks?
- When should you use static members?
9. đ§Ŧ Multiple Inheritance vs Multilevel Inheritance
- What is multiple inheritance?
- What is multilevel inheritance?
- What are the problems and solutions associated with multiple inheritance?
10. đ§ą Composition and Aggregation
- What is composition in OOP?
- What is aggregation in OOP?
- What is the difference between composition and aggregation?
11. đ Composition vs Inheritance
- When should you prefer composition over inheritance?
- _What are the advantages and disadvantages of composition vs inheritance?