Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java public interface Animal { public String eetAnimalType) public int getidTag public void setidTag(int antdTag) public int getMinTemperature) public int setMaxTemperatureO iAnimal.java Create a class
Java
public interface Animal { public String eetAnimalType) public int getidTag public void setidTag(int antdTag) public int getMinTemperature) public int setMaxTemperatureO iAnimal.java Create a class that implements the interface listed above for an animal type that begins with the same letter as your last name. For example, my last name begins with M, so I might create a Mongoose class. Your class must implement the interface and it must compile. If you cannot find an animal that begins with the same letter as your last name, you can choose an animal type that begins with the same letter as your first name. Post your class to h s discussion as an attachment or pro de a link to the g u b repository or your co e As soon as you post your code. w unii i e o er o to e the classes created by your ellow students. You will then choose one or more classes posted to he discussion y your classmates and download the Code tous e r o ct. Project 4 will require that you use at least one class from a fellow student in your solution, so start work early on your discussion post! Implementation Requirements For Your Class: getAnimalType: This should return the type of animal. For example, for my Mongoose class, the animal type will be directly set to "Mongoose" in the code, which would be returned by this method. You must not get this information from the user, so you should not include a mutator method to set the animal type value. getldTag and setldTag: These can be standard mutator and accessor methods without any validation to get and set the animal's id number getMinTemperature and getMaxTemperature: These methods should return the minimum and maximum temperatures for the animal's enclosure, but you must not get this information from the user, so you should not include a mutator method to set these values. Instead, set these values directly in your code according to the appropriate temperature range for your animal's environment. You can find this information online, such as from wikipedia or from an Animal Care ManualStep 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