4 ms·
Why not just declaring the fields public and access them directly? Is there anything I am missing?
by LoneWolf 12y ago
Why not just declaring the fields public and access them directly? Is there anything I am missing?
- Terr_ 12y agoWhat if you only want a getter? The `final` keyword is too restrictive. Also, it breaks encapsulation, because your internal storage should be changeable without ruining your external surface area.