Java program: AnimalInfo

Create a new project in your IDE named “AnimalInfo.” Create a class called “AnimalInfo” as the main class for the program. Create a class called “Animal” with a virtual method displayInfo(). Create 3 classes inherited from Animal (one for each of your animals). Each of the inherited classes should override Animal.displayInfo() to display information about the animal. The information should just be a short description of the animal displayed to the screen. In the AnimalInfo.main() method, display a menu allowing the user to choose 1 of 3 animals or quit the program. The menu should accept input from the user and take the appropriate action and then repeat until the user selects the option to quit. Hint: Simple menus are easiest to implement if the user selects a letter or number for each menu item. When the user selects an animal, use the displayInfo() method of the appropriate class to display information about the selected animal. import java.util.Scanner; //”AnimalInfo” as the main class for the program. public class AnimalInfo { public static void main(String args) { /* * In dynamic method dispatch the object can…

We help you get better grades, improve your productivity and get more fun out of college!!

Do my Assignment for me

Day(s)

:

Hour(s)

:

Minute(s)

:

Second(s)

How it works – it’s easy

Y

Place your Order

Submit your requirements through our small easy order form. Be sure to include and attach any relevant materials.

Make a payment

The total price of your order is based on number of pages, academic level and deadline.

i

Writing process

We assign the assignment to the most qualified tutor. When the tutor completes the assignment, it is transferred to one of our professional editors to make sure that the assignment meets all of your requirements.

Once complete, we’ll send your assignment via the email provided on the order form.

 

 

Achieve academic success with the best online tutors.