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:

Verified
Correct Answer:
Verified
Q50: Consider the following code snippet:<br>Public class BankAccount<br>{<br>Private
Q51: You have created a Student class. You
Q52: Consider the following class:<br>Public class Auto<br>{<br>Private String
Q53: You have created a Rocket class which
Q54: Consider the following code snippet:<br>Public class Coin<br>{<br>Private
Q56: Insert the missing code in the following
Q57: Which of the following statements about objects
Q58: You are creating a class named Employee.
Q59: Consider the following code snippet:<br>Public class Coin<br>{<br>Private
Q60: Insert the missing code in the following