Question: 1 points For this Programming Project start with implementations of the Person, Student, and Undergraduate classes as depicted in the following figure and the polymorphism



1 points For this Programming Project start with implementations of the Person, Student, and Undergraduate classes as depicted in the following figure and the polymorphism demo in program listing-1. mame Suma AtNamestring BUNAMAvoid WTTAQ.artol hassameName Person one Person, boolean NAAR EURO Sear quadent DOO TELES Bar TENERE public claas PolymorphismDemo { public static void main(String] args) Resend people = new Person[41: perc=0= nsw Unde gaduate Obtty ban 4$10 11. Peopl = new Orde graduate 393132 DO2) = nav Jeste 330313 8813 3) = ns Urge 044 Start with implementation of the Person, Student, and Undergraduate classes as shown In Figure-1 and the program listing In Listing-1. Define the Employee, Faculty, and Staff classes as depicted in Figure-2. The Employee class should have instance variables to store the employee ID as an int and the employee's department as a String The Faculty class should have an instance variable to store the faculty member's title (eg. "Professor of Computer Science") as a String. The Staff class should have an instance variable to store the staff member's pay grade (a number from 1 to 20) as an int. Every class should have appropriate constructors, accessors, and mutators, along with a writeOutput method that outputs all of the instance variable values. Modif- the program in Program Listing -1 to include at least one Faculty object and at least one Staff object in addition to the Undergraduate and Student objects. Without modification to the for loop the report should cutout the name emplo de ID. department and title for the Facult- objects, and the name, enpierce D. department ind pa grade for the Staff objects 1 points For this Programming Project start with implementations of the Person, Student, and Undergraduate classes as depicted in the following figure and the polymorphism demo in program listing-1. mame Suma AtNamestring BUNAMAvoid WTTAQ.artol hassameName Person one Person, boolean NAAR EURO Sear quadent DOO TELES Bar TENERE public claas PolymorphismDemo { public static void main(String] args) Resend people = new Person[41: perc=0= nsw Unde gaduate Obtty ban 4$10 11. Peopl = new Orde graduate 393132 DO2) = nav Jeste 330313 8813 3) = ns Urge 044 Start with implementation of the Person, Student, and Undergraduate classes as shown In Figure-1 and the program listing In Listing-1. Define the Employee, Faculty, and Staff classes as depicted in Figure-2. The Employee class should have instance variables to store the employee ID as an int and the employee's department as a String The Faculty class should have an instance variable to store the faculty member's title (eg. "Professor of Computer Science") as a String. The Staff class should have an instance variable to store the staff member's pay grade (a number from 1 to 20) as an int. Every class should have appropriate constructors, accessors, and mutators, along with a writeOutput method that outputs all of the instance variable values. Modif- the program in Program Listing -1 to include at least one Faculty object and at least one Staff object in addition to the Undergraduate and Student objects. Without modification to the for loop the report should cutout the name emplo de ID. department and title for the Facult- objects, and the name, enpierce D. department ind pa grade for the Staff objects
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
