WebstaurantStore interview question

What are the four pillars of object oriented programming

Interview Answer

Anonymous

24 Oct 2025

Conventionally there are three- polymorphism, encapsulation and inheritance. The fourth is abstraction and was added much later. I doubt the company is really leveraging any of these in the code beyond what .NET does for you, so it's comical they ask about it. Most companies use Interfaces because that's what the dependency injection article the architect read on the toilet was doing, but even then, it's unnecessary.