DEV Community

Discussion on: Avoid getters and setters whenever possible

Collapse
 
coderangshuman profile image
Angshuman Halder

This post was amazing. It changed my perspective towards getters and setters.
Having getters and setters makes no sense only if it exposes the private members of the class for being manipulated by other classes.