subject

Consider the following code segment for a class that models a fish:

public class Fish
{
private int age;
private double weight;
private boolean isAlive;
private Location location; // (x, y) location in a lake
...
}

Which of the following methods in the Fish class is the best candidate for being a instance method?

A. swim() // swim to a different location
B. eat() // fish eats
C. getLakeTemp() // get lake temperature
D. getAge() // returns age of fish
E. getWeight() // returns weight of fish

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Match the steps of the process to julia's analysis. 1. analyze choices. current costs for making phone calls to foreign countries averages between five and ten cents a minute. 2. determine the goals. julia needs to reduce the cost of telecommunications without reducing her employees' ability to do their jobs. 3. gather data. the corporate computer network will be able to handle the increased traffic that will occur as a result of voip. 4. evaluate the decision. julia will have her it department set up voip in the smallest domestic office. 5. make the decision. julia will have employees document the benefits and problems that result from using the new technology.
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
You know the right answer?
Consider the following code segment for a class that models a fish:

public class Fish
Questions
question
Mathematics, 07.07.2019 08:30
question
Business, 07.07.2019 08:30
question
Computers and Technology, 07.07.2019 08:30
question
Chemistry, 07.07.2019 08:30
Questions on the website: 13722363