what is multi level inheritance give n example ?

Answer Posted / roshan p r

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 ?    336 Yes 49 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use inheritance in unity?

595


What is abstraction in oops?

598


What is difference between inheritance and polymorphism?

585


What are the 3 principles of oop?

630


Can we have inheritance without polymorphism?

627






when to use 'mutable' keyword and when to use 'const cast' in c++

1655


Templates mean

1592


What is encapsulation in oops?

547


What is polymorphism programming?

613


What do you mean by abstraction?

626


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

949


Get me a number puzzle game-program

1702


What is ambiguity in inheritance?

631


What is polymorphism in oop example?

527


What is abstraction in oops with example?

784