Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Class Person name year_of_birtho A two-argument constructor Student studentID holds o Two attributes i.e. and to initialize its data members with user-defined values Class

Class Person name year_of_birtho  A two-argument constructor Student studentID
holds

o  Two attributes i.e. and

to initialize its data members with user-defined values

·      Class has

o  Two attributes i.e. and enrolledSemester

o  A four-argument constructor to initialize its data members (including inherited data members)

o  A function named display() to show the values of all attributes (including inherited attributes)

·      Class Employee contains

o  Five attributes i.e. employeeID, joiningYear, jobTitle (designation of an employee), courseID, and courseTitle

·      Class Administration has

o  A parameterized constructor to receive five arguments to initialize inherited attributes from classEmployee (Concerning courseID and courseTitle, only null value is allowed to set for an admin officer) Two functions i.e. setJobTitle(employee) and getJobTitle(employee) to set and get job title of an employee

·      Class Academic has

o  A parameterized constructor to receive five arguments to initialize inherited attributes from class Employee (Concerning employeeID, joiningYear, and jobTitle, only null value is allowed to set)

o  Two functions i.e. setCourseID() and setCourseTitle()

·      Only an instance of class DeanHOD should be able to modify values for employeeID, designation of an employee, ID and name of a particular course.

Implement all these classes and within the main function, create instances of all classes (except class Employee) and test the described working of all these classes.

Step by Step Solution

3.49 Rating (149 Votes )

There are 3 Steps involved in it

Step: 1

Provided the source code and sample output as per the requirements Source Code maincpp include using namespace std class Person protected attributes of Person string name int yearofbirth public defaul... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modeling the Dynamics of Life Calculus and Probability for Life Scientists

Authors: Frederick R. Adler

3rd edition

840064187, 978-1285225975, 128522597X, 978-0840064189

More Books

Students also viewed these General Management questions