Question: Consider the following code snippet: public class Coin { public void setCoinName ( String name ) { . . . } public string getCoinName (
Consider the following code snippet:
public class Coin
public void setCoinNameString 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?
setCoinNorie is a mutator method:
getcoinvalue is a mutator method.
getcoinlame is a mutator method.
setcoinlame is an accessor method.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
