OOP Interview Questions And Answers
1. Why do we need OOP?
One of the biggest benefits of object-oriented programming is that we think in terms of real-world objects (eg: doctor and patient). Our code becomes more manageable because it is in sync with the real world.
2. What are the important pillars(concepts) of OOPs?
The answer is APIE (or a pie).
- Abstraction: show only what is necessary
- Encapsulation: hides the complexity