Computers and Technology
Computers and Technology, 06.05.2021 21:00, drcarver

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:00, ziahziah
Which function key is used to enable the spelling & grammar function in a word processing program such as microsoft word?
Answers: 3
image
Computers and Technology, 23.06.2019 06:00, 573589
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, blake2001
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
image
Computers and Technology, 23.06.2019 17:30, kenyasutton10
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
Do you know the correct answer?
Computer Program:- Consider the following details of all classes for class hierarchy shown in Figu...

Questions in other subjects:

Konu
Mathematics, 14.04.2021 22:00
Konu
Mathematics, 14.04.2021 22:00
Konu
Mathematics, 14.04.2021 22:00