Create a Person class with private instance variables for the person’s name and birth date. Add appropriate accessor methods for these variables. Then create a subclass CollegeGraduate with private instance variables for the student’s GPA and year of graduation and appropriate accessors for these variables. Don’t forget to include appropriate constructors for your classes. Then create a class with a main( ) method that demonstrates your classes.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here