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, 24.06.2019 03:30
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Your mom wants to purchase a laptop computer. she said she wants her new computer to be able to play her dvds so she can listen to music and wants to know what type of optical drives will play her disk. which type of drive should she look for?
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
How does a vaccine prevent sickness and individual?
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
To add additional commands to the quick access toolbar, a user can navigate to the view. backstage status bar design file
Answers: 2
You know the right answer?
Computer Program:- Consider the following details of all classes for class hierarchy shown in Figu...
Questions
question
Mathematics, 07.01.2021 01:00
question
Mathematics, 07.01.2021 01:00
question
Mathematics, 07.01.2021 01:00
question
English, 07.01.2021 01:00
question
Mathematics, 07.01.2021 01:00
question
Mathematics, 07.01.2021 01:00
question
Mathematics, 07.01.2021 01:00
Questions on the website: 13722363