Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Write a C++ Program using concept of multiple Inheritance.
SUBMITTED BY:
Nrupeshsinh
DATE:
June 30, 2016, 2:28 p.m.
FORMAT:
Text only
SIZE:
396 Bytes
Raw
Download
Tweet
HITS:
359
Go to comments
Report
# include<iostream.h>
# include<conio.h>
class A
{
public:
void show()
{
cout<<"Base Class";
}
};
class B
{
public:
void show1()
{
cout<<"Base Class";
}
};
class C : public A,public B
{
public:
void display()
{
cout<<"Derived class";
}
};
void main()
{
clrscr();
C obj;
obj.show();
obj.show1();
obj.display();
getch();
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus