Question: Select the statements that are true about getters and setters. All getters should have non-void return types Setters always have a void return type Getters

Select the statements that are true about getters and setters. All getters should have non-void return types Setters always have a void return type Getters and setters provide a controlled and safe access to private instance variables within a class One way of designing a setter is to return the new value set to the instance variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
