11. What are the core principles of object-oriented programming?
EasyProgramming fundamentals
Technical
Show model answer
Encapsulation hides internal state behind methods. Abstraction exposes only what callers need. Inheritance lets a class reuse and extend another. Polymorphism lets code work with different types through a shared interface.
Strong answers add that composition is often preferred over deep inheritance because it keeps classes loosely coupled.