#include<iostream>
using namespace std;
class A
{
public:
void showdata()
{
cout<<"class A";
}
};
class B
{
public:
void showdata1()
{
cout<<"Class B";
}
};
class C:public A,public B
{
public:
void showdata2()
{
cout<<"Class c";
}
};
int main()
{
C obj;
obj.showdata();
obj.showdata1();
obj.showdata2();
return 0;
}
using namespace std;
class A
{
public:
void showdata()
{
cout<<"class A";
}
};
class B
{
public:
void showdata1()
{
cout<<"Class B";
}
};
class C:public A,public B
{
public:
void showdata2()
{
cout<<"Class c";
}
};
int main()
{
C obj;
obj.showdata();
obj.showdata1();
obj.showdata2();
return 0;
}