Question: Java: Consider the interface Living Thing with the single prototype public void name: Consider also: abstract class Animal implements Living Thing! public static void message
Java:

Consider the interface Living Thing with the single prototype public void name: Consider also: abstract class Animal implements Living Thing! public static void message System.out.println("Animal sounds"); 1 public abstract void soundt): 1 a) write the code for concrete classes Dog and Cat which are subclasses of Animal so that in a testing program, the code code for Dog: 20% Animal message(); Animal sparky - new Doel. Animal kit-now Catlls Sparky.name: sparky.sound): kit.namel); kit.sound(); code for Cat: produces output like this! Animal Sounds dog wool cat meow Draw a UML class diagram for these classes. 511 (Use a new page)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
