subject

Computer Program:- Consider the following details of all classes for class hierarchy shown in Figure 1 of this lab.
ο‚· Class Person holds
o Two attributes i. e. name and year_of_birth
o A two-argument constructor to initialize its data members with user-defined values
ο‚· 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 class Employee
(Concerning courseID and courseTitle, only null value is allowed to set for an admin officer)
o Two functions i. e. setJobTitle(employee) and getJobTitle(employee) to set and get job title of an employee
ο‚· Class Student has
o Two attributes i. e. studentID 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 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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
question
Computers and Technology, 25.06.2019 01:00
When a new name is registered on the internet, the process can take two hours to four hours four hours to three days two hours to two days one hour to eight hours
Answers: 1
You know the right answer?
Computer Program:- Consider the following details of all classes for class hierarchy shown in Figu...
Questions
question
Mathematics, 27.01.2021 22:00
question
English, 27.01.2021 22:00
question
Mathematics, 27.01.2021 22:00
question
Mathematics, 27.01.2021 22:00
question
Mathematics, 27.01.2021 22:00