Question: C++ - create an inheritance hierarchy Create a parent class called CompSciProfessor. Each professor has name (type string), email type string), and facultyld (type long).
C++ - create an inheritance hierarchy




Create a parent class called CompSciProfessor. Each professor has name (type string), email type string), and facultyld (type long). Specialize the CompSciProfessor class into two more classes: AdjunctProf, and TenureTrackProf classes The specialized class AdjunctProf has three attributes of its own: degrec (typc char), NoOfTA (type int), and NoOfCourses (type int). The attribute 'degree' refers to the degree of the adjunct professor. You assign 'B' to represent bachelor degree, 'M for Master degree, and 'P' for PhD. "NoOfTA, refers to the number of TAs the adjunct professor is doing for the courscs. For cxamplc, if NoOfTA-2, it mcans the adjunct professor is doing TA for two courses. NoOfCourses' refers to the number of courses that the adjunct professor is currently teaching in the department. The specialized class TenureTrackProf has two attributes of its own: rank (type char), and YearOfExp (type int). The attribute 'rank' refers to the rank of the tenure track professor. You assign A' to represent Assistant Professor, S, for Associate Professor, and F' for Full Professor. YearOfExp, is used to keep track of the number of years the professor has been teaching in the computer science department
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
