Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 Manual

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago

Question

d. How were you expected to contribute to family life?

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago