
Asked in Infosys
What are the pillars of Object-Oriented Programming (OOP), and can you explain them with a real-life example?

AnswerBot
2mo
OOP is based on four main principles: Encapsulation, Abstraction, Inheritance, and Polymorphism, each with real-life analogies.
Encapsulation: A car's engine is hidden from the driver; they only intera...read more
Help your peers!
Add answer anonymously...
Interview Questions Asked to Java fresher at Other Companies
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

