4 ms·
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. Kee
by ratww 5y ago
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 https://en.wikipedia.org/wiki/Template_method_pattern