1. Program to implement multiple inheritance.
#include <iostream.h>
#include<conio.h>
class A {
public:
void funcA() {
cout << "Function A" << endl;
}
};
class B {
public:
void funcB() {
cout << "Function B" << endl;
}
};
class C : public A, public B {
public:
void funcC() {
cout << "Function C" << endl;
}
};
int main() {
C obj;
obj.funcA();
obj.funcB();
obj.funcC();
getch();
return 0;
}