To ensure that the encapsulation is complete.
In the event that internal information shift, a consistent interface must be maintained.
To provide validation logic for obtaining and setting a value.
Hiding the property's internal representation.
To keep a class field from being accessed or modified directly.
Different levels of access may be granted by getters and setters.
Related Issue:
To ensure that the encapsulation is complete. In the event that internal information shift, a consistent interface must be maintained. To provide validation logic for obtaining and setting a value. Hiding the property's internal representation. To keep a class field from being accessed or modified directly. Different levels of access may be granted by getters and setters.
Proposed Changes
setter method is created, and applied.
Checklist
Screenshots