Hacker News new | ask | show | jobs
by ktRolster 3453 days ago
It is a convenient extra piece of flexibility. When you want to extend code in the future, inheritance can make it easier.
1 comments

Sorry, not buying that one. There's nothing in inheritance that makes extending code easier. You either design for extension or not, has nothing to do with OOP.
Inheritance creates an extra extension point automatically. You don't need to design for it.

A good, thoughtful design is better, of course.