New course! Every coder should learn Generative AI!
Try a free lesson+ 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.