Question: Assume faceValue is an integer instance variable in the Die class. Which of the following code snippets represents a valid accessor / getter method for
Assume faceValue is an integer instance variable in the Die class.
Which of the following code snippets represents a valid accessorgetter method for faceValue?
public void getFaceValue
return faceValue;
public int getFaceValue
return faceValue;
public getFaceValue
return faceValue;
public int getFaceValue
faceValue ;
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
