Multiple Choice
Consider the following code snippet:
Public class Vehicle
{
) . .
Public void setVehicleAttributes(String attributes)
{) . . }
Public String getVehicleAtrributes()
{) . . }
Public String getModelName()
{) . . }
}
Assuming that the names of the methods reflect their action, which of the following statements about these instance methods is NOT correct?
A) setVehicleAttributes is an accessor method.
B) setVehicleAttributes is a mutator method.
C) getVehicleAttributes is an accessor method.
D) getModelName is an accessor method.
Correct Answer:

Verified
Correct Answer:
Verified
Q80: Each object of a class has a
Q81: The _ operator is used to construct
Q82: Insert the missing code in the following
Q83: Given the following class definition, which of
Q84: Which of the following statements about instance
Q86: Consider the following code snippet:<br>Coin coin1 =
Q87: The process of hiding object data and
Q88: Consider the following code snippet:<br>Public int getCoinValue(String
Q89: Given the following class definition, which of
Q90: Which of the following statements about classes