Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose we are designing a college record - keeping program that has records for both students and faculty. There is a natural hierarchy for grouping
Suppose we are designing a college recordkeeping program that has records for both students and faculty. There is a natural hierarchy for grouping these record types:
They are all records of people.
Students The student has the ability to start from the beginning reset at any point, ie a student in rd year can start from the beginning with the same major or a different one. We have two kinds of students:
Undergraduate Students Undergraduate students have the following properties:
Name, StudentNumber, Major, and Level Freshman Sophomore, Junior, Senior
Graduate Students Graduate students have the following properties:
Name, StudentNumber, Major, and Degree Master Doctoral
Instructors Instructors have the following properties:
Name, ID Salary. However, the salary is a property in the job class. See Slide from Introduction to Class InheritanceOpen this document with ReadSpeaker docReader PowerPoint Presentation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started