Solved

Consider the Following Code Snippet

Question 37

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents