3 ms·
It is a convenient extra piece of flexibility. When you want to extend code in the future, inheritance can make it easier.
by ktRolster 10y ago
It is a convenient extra piece of flexibility. When you want to extend code in the future, inheritance can make it easier.
- codr4life 10y agoSorry, 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.
- ktRolster 10y agoInheritance creates an extra extension point automatically. You don't need to design for it. A good, thoughtful design is better, of course.