Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Polymorphism Java Program I've created a driver program Animal Kingdom that creates some objects, but not all. I need help to finish the program, here
Polymorphism Java Program I've created a driver program "Animal Kingdom" that creates some objects, but not all. I need help to finish the program, here are my requirements: Please take your time and I appreciate your effort.
I need to write classes or interfaces to represent the following: Adoptable Animal Bat Bird BlueWhale Cat Emu Fish Goldfish Mammal Otter Parakeet Reptile Turtle WaterDweller Whale - - Winged All animals have a name All animals must have a method "isWarm Blooded" that returns a boolean (Method can be in the class directly or inherited) All classes must have a to String method that returns: the animal's name, whether it's blood is warm, and a list of all animal names that apply to the animal. Animals that can be adopted (Cat, Bird..) have a method "homeCareDirections" that returns a text description of how to care for the animal. Animals that live in water (water dwellers) have a method "canLiveOutOfWater" that returns a boolean of whether the animal also can live out of the water (on land). Animals that have wings have a method "canFly" that returns a boolean of whether the animal can fly. Declare classes that should not be instantiated as abstract please. For the driver program, please include polymorphism. I can provide two websites that I used for animal info, in case you need it: If possible, try to provide an equals Method in the Animal class. Two animals are logically equivalent if they have the same name (ignoring capitalization) and the same warm blooded status. No need to override the equals method in any other class.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started