by nercury · 12y ago · 0 comments
What?
What about: "The purpose of class is to encapsulate state".
If there is no inner fields in class, there is no reason for class. There is no state.
One or more fields in class means that they make sense when looking at all of them together, as a "state". If some method changes something, the all state encapsulated by class means something else.
It is possible to extrapolate all other guidelines from this basic starting point.