Create a student class with two attributes and getters and setters.
Create a graduate student class with one other attribute.
Allow users to enter the info about one or the other...create the two objects depending on what the user chooses.
Here's the code from tonight's class (Baseball Players).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment