+ 1
Also create setter methods for age, color and gender and pass the input from the user to setters and not getters. Do not pass any arguments in getter methods. They just return a value.
28th Nov 2019, 12:33 AM
Avinesh
Avinesh - avatar