Question Solved1 Answer Procedure: 1. Create a public class named RunAnimal. This class shall contain the main method. 2. Add four (4) Java classes without modifiers named Animal (abstract), Bird, Cat, and Dog. Animal should be the parent class of the other three (3) classes. 3. For the Animal class, declare these three (3) abstract methods: eat(), sleep(), and makeSound(). 4. Use only println() for the Bird, Cat, and Dog classes. Create appropriate statements based on the animal. See sample output below. 5. For the RunAnimal class, use nextLine() and equalsIgnoreCase() to produce an output similar to the provided sample output. Sample Output: Choose an animal. Press B for Bird, c for Cat, or D for Dog: B Birds love to eat seeds and sleep for 10-12 hours a day. Tweet tweet

85JWFB The Asker · Computer Science

Transcribed Image Text: Procedure: 1. Create a public class named RunAnimal. This class shall contain the main method. 2. Add four (4) Java classes without modifiers named Animal (abstract), Bird, Cat, and Dog. Animal should be the parent class of the other three (3) classes. 3. For the Animal class, declare these three (3) abstract methods: eat(), sleep(), and makeSound(). 4. Use only println() for the Bird, Cat, and Dog classes. Create appropriate statements based on the animal. See sample output below. 5. For the RunAnimal class, use nextLine() and equalsIgnoreCase() to produce an output similar to the provided sample output. Sample Output: Choose an animal. Press B for Bird, c for Cat, or D for Dog: B Birds love to eat seeds and sleep for 10-12 hours a day. Tweet tweet
More
Transcribed Image Text: Procedure: 1. Create a public class named RunAnimal. This class shall contain the main method. 2. Add four (4) Java classes without modifiers named Animal (abstract), Bird, Cat, and Dog. Animal should be the parent class of the other three (3) classes. 3. For the Animal class, declare these three (3) abstract methods: eat(), sleep(), and makeSound(). 4. Use only println() for the Bird, Cat, and Dog classes. Create appropriate statements based on the animal. See sample output below. 5. For the RunAnimal class, use nextLine() and equalsIgnoreCase() to produce an output similar to the provided sample output. Sample Output: Choose an animal. Press B for Bird, c for Cat, or D for Dog: B Birds love to eat seeds and sleep for 10-12 hours a day. Tweet tweet
See Answer
Add Answer +20 Points
Community Answer
UEMKL4 The First Answerer
See all the answers with 1 Unlock
Get 4 Free Unlocks by registration

Animal.javapublic abstract class Animal {public abstract void eat();public abstract void sleep();public abstract void makeSound();}Dog.javapublic class Dog extends Animal {@Overridepublic void eat() {System.out.print("Dog love to eat chicken ");}@Overridepublic void sleep() {System.out.println("and sleep for 6- hours a day");}@Overridepublic void makeSound() {System.out.println("Bow bow bow");}}Cat.javapublic class Cat extends Animal {@Overridepublic void eat() {System.out.print("Cats love to eat fish ");}@Overridepublic void sleep() {System.out.println("and sleep for 8-10 hours a day");}@Overridepublic void makeSound() {System.out.println("Meow");}}Bird.javapublic class Bird extends Animal {@Overridepublic void eat() {System.out.print("Birds love to eat seeds ");}@Overridepublic void sleep() {System.out.println("and sleep fo ... See the full answer