News for hackers. Stuff that matters.
Re:The Repeated Deaths of OOP (2015) by ratww on Sunday June 06, 2021 @12:45PM (#27414347)
Inheritance is a bit more complicated than that.

Your definition is closer to what the Template Method pattern [1] is, rather than inheritance in general.

Keep in mind also that neither inheritance itself nor the Template Method pattern guarantee encapsulation.

[1] https://en.wikipedia.org/wiki/Template_method_pattern

There are no comments on this comment yet.