what is multi level inheritance give n example ?

Answer Posted / mohd aqeel ahmed

The best example is Say we have 3 class
ClassA,ClassB and ClassC.

ClassB is derived from ClassA and ClassC is derived ClassB
this is multi level inheritance..

ClassA
^
|
|
ClassB
^
|
|
ClassC

Is This Answer Correct ?    102 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is super in oop?

593


What does <> mean pseudocode?

620


What is encapsulation with example?

576


Why is polymorphism used?

581


What is abstraction in oop with example?

642






#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

2064


What is the important feature of inheritance?

631


What is the main feature of oop?

618


What is difference between pop and oop?

601


What is a class oop?

592


Why do we use inheritance?

628


What causes polymorphism?

569


Why is abstraction needed?

563


What is inheritance write a program to show use of inheritance?

611


What is abstract class in oops?

597