Question: In this assignment, you will create a series of simple classes which make up a class hierarchy for a few species of birds and mammals.

 In this assignment, you will create a series of simple classes

In this assignment, you will create a series of simple classes which make up a class hierarchy for a few species of birds and mammals. Classes you create should include: Animalkingdom, Chordata, Mmal, Human Note: Think about how sub-classes inherit methods from super-classes. Only define methods where you need them. 1. Program Classes in the Put all these classes in the animal package Every AnimalKingdom class should support the following calls: public String getName-returns the name of the object public String toStrina) returns the object name along with a list of where it is in the classification of living organisms. For instance, the method on an object named Ricky of the class Raccoon, should return something like "Ricky (Raccoon, Mammal, Chordata, Animal Kingdom)" Specific Animals support the following: Every Mammal drinks milk... MammallString name) -constructs a new instance of the Mammal class public void drinkMilk) prints out a statement about who is drinking milk Humans can bend their thumb.. public void bendThumb) - prints out a statement about who is bending their thumb 2. Write the Class This class should be in the default package (root director Write the MainKinadem Class with a main method that instantiates at least one Kangaroo, Robin, Emu, and Human and demonstrates your implementation of these classes -calling all the available methods for each. Feel free to create additional methods in the MainKinadam class (or other classes) to do all these calls if that makes this easier.l In this assignment, you will create a series of simple classes which make up a class hierarchy for a few species of birds and mammals. Classes you create should include: Animalkingdom, Chordata, Mmal, Human Note: Think about how sub-classes inherit methods from super-classes. Only define methods where you need them. 1. Program Classes in the Put all these classes in the animal package Every AnimalKingdom class should support the following calls: public String getName-returns the name of the object public String toStrina) returns the object name along with a list of where it is in the classification of living organisms. For instance, the method on an object named Ricky of the class Raccoon, should return something like "Ricky (Raccoon, Mammal, Chordata, Animal Kingdom)" Specific Animals support the following: Every Mammal drinks milk... MammallString name) -constructs a new instance of the Mammal class public void drinkMilk) prints out a statement about who is drinking milk Humans can bend their thumb.. public void bendThumb) - prints out a statement about who is bending their thumb 2. Write the Class This class should be in the default package (root director Write the MainKinadem Class with a main method that instantiates at least one Kangaroo, Robin, Emu, and Human and demonstrates your implementation of these classes -calling all the available methods for each. Feel free to create additional methods in the MainKinadam class (or other classes) to do all these calls if that makes this easier.l

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!