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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:10, reycaden
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
image
Computers and Technology, 22.06.2019 15:30, micahpauleen748
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, silvijaaa
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
image
Computers and Technology, 23.06.2019 01:30, giannav57
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
You know the right answer?
Computer Program:- Consider the following details of all classes for class hierarchy shown in Figu...

Questions in other subjects: