Back To C++ Inheritance Index
//program to demonstrate multiple inheritance, classes are derived in public access mode from base classes #include
#include
class first { int a; public: void firstgetdata() { cout<<"\nenter value for a "; cin>>a; } void firstshowdata() { cout<<"value of a is "<
>b; } void secondshowdata() { cout<<"\nvalue of b is "<
>c; } void showdata() { firstshowdata(); secondshowdata(); cout<<"\nvalue of c is "<