3 ms·
Then what does it mean if "composition over inheritance" is also taught as a good practice in OO?
by Apocryphon 7mo ago
Then what does it mean if "composition over inheritance" is also taught as a good practice in OO?
- MaxBarraclough 7mo agoThat's a rule-of-thumb to help beginners in making judgement calls. It doesn't mean inheritance should never be used.
- Apocryphon 7mo agoTrue, but if the defining feature of something is a feature you should use sparingly, doesn't that mean other features are more definitive?