Y
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
codr4life
3453 days ago
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.
link
ktRolster
3452 days ago
Inheritance creates an extra extension point automatically. You don't need to design for it.
A good, thoughtful design is better, of course.
link