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


Please Help Members By Posting Answers For Below Questions

What is data binding in oops?

582


What is inheritance and how many types of inheritance?

611


What is polymorphism and types?

595


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1413


Can we create object of interface?

601






What is polymorphism and its types?

589


What is encapsulation example?

545


How do you answer polymorphism?

577


What is encapsulation process?

575


class type to basic type conversion

1833


Why is oop useful?

598


What language is oop?

591


What is oops and why we use oops?

569


Which type does string inherit from?

608


Can we override main method?

599