Accenture Interview Question

Explain OOP principles with example

Interview Answer

Anonymous

Dec 10, 2025

Encapsulation: Hiding data inside a class and accessing it only through methods. Inheritance: One class reuses and extends another class’s properties. Polymorphism: Same function behaves differently (overloading/overriding). Abstraction: Showing only essential features while hiding internal details.