Skip to main content

2 docs tagged with "polymorphism"

View all tags

Chapter 5: Object-Oriented Programming

Martin revisits the three pillars of OOP — encapsulation, inheritance, and polymorphism — and argues that OO's true architectural gift is safe, convenient polymorphism that enables plugin architecture and dependency inversion.

Chapter 6 — Class Design

Deep dive into Java inheritance, abstract classes, polymorphism, method overriding rules, final keyword, immutable class design, and Object methods — with focus on the subtle OCP exam traps around field hiding and initialization order.