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, 22.06.2019 17:30
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
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, 07.07.2021 21:30
question
Social Studies, 07.07.2021 21:30
question
Mathematics, 07.07.2021 21:30
question
English, 07.07.2021 21:40
Questions on the website: 13722363