previous
|
start
|
next
Separating Accessors and Mutators
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
previous
|
start
|
next