3 ms·
So don't use inheritance. Seriously. Inheritance is annoying, but unnecessary. I generally avoid it. You can still use other parts of OO.
by paul 19y ago
So don't use inheritance. Seriously. Inheritance is annoying, but unnecessary. I generally avoid it. You can still use other parts of OO.
- ralph 19y agoGood advice, but it doesn't help when one's coding in a larger system not just written by oneself. Then there's operator overloading; you can't trust anything to be doing what it suggests in an unknown, or large, codebase. Code readability goes down the pan if too much is hidden by mis-used OO techniques.
- Tichy 19y agoNot all OO languages allow operator overloading.