Class Person name year_of_birtho A two-argument constructor Student studentID holds o Two attributes i.e. and to initialize
Question:
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.
Modeling the Dynamics of Life Calculus and Probability for Life Scientists
ISBN: 978-0840064189
3rd edition
Authors: Frederick R. Adler