4 ms·
Our understanding and experience with OOP has evolved significantly since 1991. Heck, the GoF book didn't come out until 1994! You are correct that encapsulatio
by taylodl 8y ago
Our understanding and experience with OOP has evolved significantly since 1991. Heck, the GoF book didn't come out until 1994! You are correct that encapsulation, inheritance and polymorphism used to be preached. Then Microsoft brought out COM and noted you really don't need inheritance.
Fast-forward to 2019 and OOP is on SOLID ground:
S - Single responsibility principle
O - Open-closed principle
L - Liskov substitution principle
I - Interface segregation principle
D - Dependency inversion principle
I would argue that abstraction is the base principle of all programming and really isn't terribly useful principle with which to differentiate OOP.