SE450
:
Separating Accessors and Mutators
[25/57]
Better interface:
String getCurrent();
void next();
Even more convenient:
String getCurrent();
String next(); // returns current
Refine rule of thumb:
Mutators can return a convenience value, provided there is also an accessor to get the same value