update abstract method
- String input
Updates the value based on the user's input.
Perform validation here and set error accordingly. You do not have to set value in this function -- for example, if the user entered an invalid input.
Implementation
void update(String input);