Answer:
Match the methods:
See attached file
---------------------------------------------------------------------------------------------------------------------------------------
2)
Methods are public, and instance variables are private in common pattern of a class definition program.
So, the correct option is (C).
- -----------------------------------------------------------------------------------------------------------------------------------------
3) Java code:
//Create a Throttle called quiz with 100 positions<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Throttle quiz = new Throttle(100);
//Method that shifts quiz's flow to the halfway
quiz.shift(50);
//Display the current flow from quiz.
System.out.println(quiz.getflow());
-------------------------------------------------------------------------------------------------------
4)
Assume that the Foo class does not have a clone method. Then x is set to refer to a copy of y's object for an assignment x=y; in two Foo objects
.
So, the correct option is (A)
-----------------------------------------------------------------------------------------------------------------------------------------
5)
The correct option is
A)
mower.top and copter.top will always be two separate instance variables.
Explanation: