Question no 2: Consider the following details of all classes Person Employee Student Administration Academic Dean/HOD A person can be an employee or a student. An employee may have rights of admin...


Solve the Question proparly and answer the part (i) accordingly


Question no 2:<br>Consider the following details of all classes<br>Person<br>Employee<br>Student<br>Administration<br>Academic<br>Dean/HOD<br>A person can be an employee or a student. An employee may have rights of admin officer or of<br>academic officer. These class hierarchies represent multi-level inheritance. However, a Dean or<br>Head of Department(HOD) may have rights to modify the status already defined by an administrator<br>academic officer. Implement all these classes with appropriate data members and proper suitable<br>functions and within the main function, create instances of all classes and test the described working<br>of all these classes.<br>i.<br>Consider the diagram given in Question no. 2(11), Can we come across diamond problem in<br>this scenario? If yes, explain and suggest solution? If not, illustrate the reasons. How the<br>Person class be made abstract? If Person class becomes abstract, what changes should be<br>made in the other classes?<br>

Extracted text: Question no 2: Consider the following details of all classes Person Employee Student Administration Academic Dean/HOD A person can be an employee or a student. An employee may have rights of admin officer or of academic officer. These class hierarchies represent multi-level inheritance. However, a Dean or Head of Department(HOD) may have rights to modify the status already defined by an administrator academic officer. Implement all these classes with appropriate data members and proper suitable functions and within the main function, create instances of all classes and test the described working of all these classes. i. Consider the diagram given in Question no. 2(11), Can we come across diamond problem in this scenario? If yes, explain and suggest solution? If not, illustrate the reasons. How the Person class be made abstract? If Person class becomes abstract, what changes should be made in the other classes?

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here