subject
Computers and Technology, 12.04.2021 23:30 adamm16

For this exercise, you are going to create a part of an Animal hierarchy. Unlike some of our examples and the previous exercises, this exercise is going to have 3 levels in the hierarchy. At the top is the Animal class. Below that, we are going to have a subclass for Pets. Under pets, we are going to have 2 subclasses, Dogs and Fish. You will need to create your class hierarchy and add instance variables, getters, and setter methods to accommodate the following information: I need to save what type of animal I have (String variable) I want to be able to save a name for my fish and dog (String variable) I want to know which fish need salt water v. fresh water (String variable) I want to know if my dog has been trained (boolean variable) I want to know the size of my dog and fish (String variable) None of your classes should have constructors. Instead, create setter and getter methods to set the value of the instance variables that you create. Make sure you use common sense names for your variables!

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
Which virus-infecting components are email messages prone to carry? one of the problems associated with the use of email communication is that email messages are prone to carry virus-infecting .
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
How do you take a green screen out of the video while editing?
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
You know the right answer?
For this exercise, you are going to create a part of an Animal hierarchy. Unlike some of our example...
Questions
question
Mathematics, 16.02.2021 21:00
question
Physics, 16.02.2021 21:00
question
Mathematics, 16.02.2021 21:00
question
Mathematics, 16.02.2021 21:00