Skip to Content
Go Realm v1 is released 🎉
OOP

🧠 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?