Question: Implement a class called Student that contains the data members like age, name, enroll_no, marks. Create another class called Faculty that contains data members
Implement a class called Student that contains the data members like age, name, enroll_no, marks. Create another class called Faculty that contains data members like faculty Name, facultyCode, salary, deptt, age, experience, gender. Create the function display() in both the classes to display the respective information. The derived Class Person demonstrates multiple inheritance. The program should be able to call both the base classes and displays their information. Remove the ambiguity (When we have exactly same variables or same methods in both the base classes, which one will be called?) by proper mechanism.
Step by Step Solution
3.53 Rating (150 Votes )
There are 3 Steps involved in it
The detailed ... View full answer
Get step-by-step solutions from verified subject matter experts
