Quantcast
Channel: java traits or mixins pattern? - Stack Overflow
Viewing all articles
Browse latest Browse all 9

Answer by sblundy for java traits or mixins pattern?

$
0
0

Not the way you want to do it. Effective Java recommends that you "Favor composition over inheritance". Meaning you move the common logic to other classes and delegate. This is how you get around the lack of multiple inheritance in java.


Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images