Question: Identify the true statements. Select ALL that apply. Question 6 options: Setters and getters are not required for public instance variables. A getter method has
Identify the true statements. Select ALL that apply.
Question options:
Setters and getters are not required for public instance variables.
A getter method has the same returntype as the field it retrieves and takes no parameters.
A setter method is returntype void and takes a parameter of the same type as its field.
Every private instance variable in a class definition must have a mutator 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
