what is multi level inheritance give n example ?

Answer Posted / radha

when a derived class inherits an already created derived
class ,then it is known as multilevel inheritance.

A->B->C
HERE A IS A BASE CLASS.B IS AN INTERMEDIATE BASE CLASS ,AS
IT PROVIDES A LINK FOR THE INHERITANCE BETWEEN A & C.C IS A
DERIVED CLASS.
EG. GRANDFATHER
|
FATHER
|
CHILD

THE CHAIN IS KNOWN AS INHERITANCE PATH.

Is This Answer Correct ?    20 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is interface? When and where is it used?

1671


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3863


write a program that takes input in digits and display the result in words from 1 to 1000

2001


What is new keyword in oops?

601


What are the 4 pillars of oop?

681






Is this job good for future? can do this job post grduate student?

1701


What is abstract class in oop?

544


Describe these concepts: Polymorphism, Inheritance and Abstraction.

624


Why is encapsulation used?

586


How do you achieve runtime polymorphism?

575


What is persistence in oop?

679


What is overloading in oop?

581


What is inheritance and how many types of inheritance?

636


What is difference between abstraction and encapsulation?

600


Can we create object of interface?

617