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 does and I oop mean in text?

847


How Do you Code Composition and Aggregation in C++ ?

24703


What is encapsulation in simple terms?

762


What is class encapsulation?

818


Explain the advantages of inheritance.

867


is there any choice in opting subjects like 4 out of 7

1923


What is this pointer in oop?

787


What is polymorphism what is it for and how is it used?

766


What polymorphism means?

808


Why is abstraction needed?

754


What is cohesion in oop?

834


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2319


What are the 3 principles of oop?

830


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1824


What are the three main types of variables?

825