What is multiple inheritance? Give Example

Answer Posted / palsaniya sadikhasan, meta.

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 ?    9 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an example of genetic polymorphism?

645


What is polymorphism in oops with example?

525


What type of loop is a for loop?

678


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1771


What is the problem with multiple inheritance?

578






What is solid in oops?

593


What is abstract class in oop?

526


What does sksksk mean in text slang?

1514


What is the importance of oop?

605


How can you overcome the diamond problem in inheritance?

761


What is difference between class and object with example?

558


What are objects in oop?

602


Why polymorphism is used in oops?

575


What is ambiguity in inheritance?

618


What is the purpose of enum?

577