OOP (313304) Manual Practical No.12: Write programs to implement Multiple Inheritance Answer
Multiple Inheritances is a feature of C++ where a class can inherit from more than one class.
It is the process of inheriting properties of objects of one class by objects of another class. The class which inherits the properties of another class is called the Derived or Child or Subclass and The class whose properties are inherited is called the Base or Parent or Superclass.
OOP (313304) Manual Practical No.12 Exercise:
1. Identify the following type of Inheritance shown. Write a definition of each class. Write suitable member functions to accept and display data for each class.
Answer:
2. Write a Program to get the average marks of six subjects using the Multiple Inheritance
Answer:
Practical Related Questions
1. Write a C++ program to calculate the area and perimeter of rectangles using the concept of inheritance.
2. Complete the following table:
Answer:
Conclusion
We completed OOP (313304) Manual Practical No.12 in which we wrote C++ programs to implement Multiple Inheritance.