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
What is an example of genetic polymorphism?
What is polymorphism in oops with example?
What type of loop is a for loop?
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’.
What is the problem with multiple inheritance?
What is solid in oops?
What is abstract class in oop?
What does sksksk mean in text slang?
What is the importance of oop?
How can you overcome the diamond problem in inheritance?
What is difference between class and object with example?
What are objects in oop?
Why polymorphism is used in oops?
What is ambiguity in inheritance?
What is the purpose of enum?