2076 1

Object Oriented Programming207610 marksTypes of inheritance

Write a program according to the specification given below:- Create a class Teacher with data members id & subject and member functions for reading and displaying data members.- Create another class Staff with data members id & position, and member functions for reading and displaying data members.-

Write a program according to the specification given below:- Create a class Teacher with data members id & subject and member functions for reading and displaying data members.- Create another class Staff with data members id & position, and member functions for reading and displaying data members.- Derive a class Coordinator from Teacher and Staff and the class must have its own data member department and member functions for reading and displaying data members.- Create two object of Coordinator class and read and display their details.[10]

This program demonstrates multiple inheritance in C++, where a derived class Coordinator inherits from two base classes Teacher and Staff. The derived class has its own data member department along with inherited members from both base classes. --- --- --- --- Feature Description ------ Multiple ...

Up nextExplain the concept of operator overloading? List the operators that cannot be overloaded.