|
||||||||
Creating a subclassdue Oct. 9The class Undergrad should contain:
You must also create another class called School which has a main() method that creates a few Undergrad and Graduate objects and after setting information prints outs this information to the screen. class Student { String Name; int age; int SSNum; String Advisor; void PrintInfo() { System.out.println("Name: " + Name); System.out.println("age: " + age); System.out.println("SS# : " + SSNum); System.out.println("Advisor: " + Advisor); } } |
||||||||
© Lynne Grewe |