Question: Suppose we are designing a simple college record - keeping program that has records for students and faculty. Create a program that would have the

Suppose we are designing a simple college record-keeping program that has records for students and faculty. Create a program that would have the following natural hierarchy for grouping these record types:
They are all records of people (inheriting from class Person).
Students. They have the following properties:
Name, StudentNumber, Major, and Level (freshman, sophomore, junior, senior)
Instructors. Instructors have the following properties:
Name, ID, Salary. However, the salary is a property in the job class (can be found in slide 59 here: CS 143 Lecture 03 Inheritance Composition and Overriding Methods.pptx)
Create the 3 classes above (Person, Student, and Instructor), and take the Job class from the slide mentioned above. For all the classes, includethe following:
The properties of all classes as they are mentioned above,.
The setters and getters for those properties
A print method that prints the info of all the properties for each class
In your main method, create a student object and an instructor object.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!