Create a Person class with private instance variables for the person's name and birth date. Add appropriate
Fantastic news! We've Found the answer you've been seeking!
Question:
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 College Graduate 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.
Related Book For
Practicing Statistics Guided Investigations for the Second Course
ISBN: 978-0321586018
1st edition
Authors: Shonda Kuiper, Jeff Sklar
Posted Date: