What is an accessor method? What is a mutator method?
Give the complete definition of a class called Person that has two instance
variables, one for the person’s name and the other for the person’s
age. Include accessor methods and mutator methods for each instance
variable. Also, include a method that sets both the name and age of a
person. There are no other methods.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here