Question: Please help he Playable interface is listed below: oublic interface Playable { public abstract D whatToPlayOn(); public abstract void howToPlay(D); public default void getAgeGroup(A a)
he Playable interface is listed below: oublic interface Playable \{ public abstract D whatToPlayOn(); public abstract void howToPlay(D); public default void getAgeGroup(A a) System.out.println("Appropriate for the age of " +a ); 1. Implement a generic class Game that implements the Playable interface provided ab ove. The Game has at least two private data fields of your choice (generic types for Device used & Age will do), two constructors, getter(s), setter(s) and a toString() method. 2. Implement a generic static method playThemAll() that will accept a List of any Type and display details of all elements in it at once. 3. Create an List of at least 4 Games (type of parameters for eachigame in the list shoul d be same but make sure it can be any) and call all three methods listed in the interface on each element of this List. (you can move all calls toString() method, neither method in your class should be empty) 4. Call / Test the generic static method you developed in part 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
