// Brian Brindle // MyBeing.java abstract class MyBeing extends Object { abstract void Display(); public static void main(String args[]) { Person teacher = new Person ("Harris", "Jan"); teacher.Display(); Student friend = new Student ("Weaver", "Mike", "22"); friend.Display(); NightStudent sleepy = new NightStudent ("Sleeping", "ILove", "13", "123-45-6789"); sleepy.Display(); Fulltimenitestudent me = new Fulltimenitestudent ("Brindle", "Brian", "22", "987-65-4321", "FullTime"); me.Display(); } } class Person extends MyBeing { String lastName; String firstName; void Display() { System.out.println("This is a person"); System.out.println("\tName: " + this.lastName + ", " + this.firstName); } public Person(){ lastName = "Doe"; firstName = "John"; } public Person(String lN, String fN) { lastName = lN; firstName = fN; } public Person(String n) { lastName = n; firstName = "Mr./Mrs."; } } class Student extends Person { String iD; void Display() { System.out.println("\nThis is a student"); System.out.println("\tName: " + this.lastName + ", " + this.firstName); System.out.println("\tStudent's ID: " + this.iD); } public Student(String lName, String fName, String i) { super(lName, fName); iD = i; } } class NightStudent extends Student { String sSN; void Display() { System.out.println("\nThis is a night student"); System.out.println("\tName: " + this.lastName + ", " + this.firstName); System.out.println("\tStudent's ID: " + this.iD); System.out.println("\tSocial Security Number: " + this.sSN); } public NightStudent(String lName, String fName, String i, String sS) { super(lName, fName, i); sSN = sS; } } class Fulltimenitestudent extends NightStudent { String status; void Display() { System.out.println("\nThis is a full time night student"); System.out.println("\tName: " + this.lastName + ", " + this.firstName); System.out.println("\tStudent's ID: " + this.iD); System.out.println("\tSocial Security Number: " + this.sSN); System.out.println("\tStatus: " + this.status + "\n\n"); } public Fulltimenitestudent(String lName, String fName, String i, String sS, String stat) { super(lName, fName, i, sS); status = stat; } }