Solved

Consider the Following Code Snippet

Question 6

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 this class is correct?


A) setVehicleAttributes is an accessor method.
B) setVehicleAttributes is a mutator method.
C) getVehicleAttributes is a mutator method.
D) getModelName is a mutator method.

Correct Answer:

verifed

Verified

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

Related Questions