4 ms·
Thinking of that as inheritance is a Bad Idea. That's embedding. It looks like inheritance but really it's sugar for calling B.A.fn()
by chewxy 9y ago
Thinking of that as inheritance is a Bad Idea. That's embedding. It looks like inheritance but really it's sugar for calling B.A.fn()
- chank 9y agoComposition over inheritance. A lot of developers use polymorphism as a crutch.