logoalt Hacker News

Apocryphonyesterday at 9:30 PM1 replyview on HN

Then what does it mean if "composition over inheritance" is also taught as a good practice in OO?


Replies

MaxBarracloughyesterday at 9:50 PM

That's a rule-of-thumb to help beginners in making judgement calls. It doesn't mean inheritance should never be used.

show 1 reply