I need animate method in TilePiece & DicePiece class.
But
java has no multiple inheritance feature,
SCJP book (by Kathy Sierra, Bert Bates) suggest that
we can create one interface as below (Refer pg:100)
If i do like they suggest, then i need to implement animate method in both the classes.
Inheritance is of course for code reuse.
Is implementing the interface, the correct solution for my above requirement ?
Kindly suggest