Solved

Consider the Following Code Snippet

Question 55

Multiple Choice

Consider the following code snippet:
Public class Coin
{
) . .
Public void setCoinName(String name)
{) . . }
Public String getCoinName()
{) . . }
Public String getCoinValue()
{) . . }
}
Assuming that the names of the methods reflect their action, which of the following statements about this class is correct?


A) setCoinName is an accessor method.
B) setCoinName is a mutator method.
C) getCoinName is a mutator method.
D) getCoinValue is a mutator method.

Correct Answer:

verifed

Verified

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

Related Questions