Y
Hacker News
new
|
ask
|
show
|
jobs
by
Apocryphon
114 days ago
Then what does it mean if "composition over inheritance" is also taught as a good practice in OO?
1 comments
MaxBarraclough
114 days ago
That's a rule-of-thumb to help beginners in making judgement calls. It doesn't mean inheritance should never be used.
link
Apocryphon
114 days ago
True, but if the defining feature of something is a feature you should use sparingly, doesn't that mean other features are more definitive?
link