Private fields and accessor placing in classes
Where’s the best place to put your private fields and accessors (getters and setters) in classes? Well, the traditional approach is to group all private fields together, all accessors together and all methods together. That is quite intuitive yet it presents some problems.
A private field is almost always associated with accessors. In almost every OOP [...]
