This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
A scenario occurred like this: 3 classes: Bat, Eat, Fat. When Bat is instantiated only Bat related methods are called. When Eat is instantiated Eat+ Bat related methods are called. When Fat is instantiated Fat+Eat+Bat (means all) methods are called.
Bat & Eat are language specific & there are nine languages. So, nine Bat & nine Eat. But, Fat is not language specific, there's only one Fat. Now, the question is how it can be designed so that when suppose french is passed as language parameter Bat_fr+Eat_fr+Fat specific methods will be called.
I thought of making Bat as interface which will be extended by Eat interface & which will be implemented by Fat. Don't know if it is ok.