What is multiple inheritance? Give Example
Answer Posted / palsaniya sadikhasan, meta.
Sorry! Following example is the Multilevel inheritance.
which Post by me.
a class is derived from an existing class in multiple level.
e.g.
class abc
{
int a;
public:
void getdata();
};
class xyz public:abc
{
int b;
public:
void getinput();
}
class pqr public:xyz
{
int c;
public:
void show();
}
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is data binding in oops?
What is inheritance and how many types of inheritance?
What is polymorphism and types?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< Can we create object of interface? What is polymorphism and its types? What is encapsulation example? How do you answer polymorphism? What is encapsulation process? class type to basic type conversion Why is oop useful? What language is oop? What is oops and why we use oops? Which type does string inherit from? Can we override main method?