DEV Community

Discussion on: Getter naming conventions

Collapse
 
bertilmuth profile image
Bertil Muth • Edited

BTW, having no setters and passing in the fields‘ values in the constructor alone doesn’t make your objects immutable. And if you e.g. want to implement value objects in Java, that are immutable, you need getters.