Question: IN JAVA Create a Monster abstract class that implements both the Drawable and Loadable interfaces. It should contain the following PRIVATE data: int x (default:

IN JAVA
Create a Monster abstract class that implements both the Drawable and Loadable interfaces. It should contain the following PRIVATE data: int x (default: 0) int y (default: 0) int health (default: 100) PROTECTED No-arg constructor (does nothing) PROTECTED constructor that takes x, y, and health Page 2 of 9 It should have the following PUBLIC methods: Getter method: int getX) Getter method: int getYO Getter method: int get Health) Setter method: void setX(int x) Setter method: void set Y(int y Setter method: void setHealth(int health) Concrete implementation of Loadable method: void load(Scanner input) throws Exception The data fields will be in this order: x, y, health. Read each data field in with nextlnt( NO concrete implementation of Drawable's methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
