Solved

Consider the Following Code Snippet

Question 85

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions