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
What is interface? When and where is it used?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
write a program that takes input in digits and display the result in words from 1 to 1000
What is new keyword in oops?
What are the 4 pillars of oop?
Is this job good for future? can do this job post grduate student?
What is abstract class in oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Why is encapsulation used?
How do you achieve runtime polymorphism?
What is persistence in oop?
What is overloading in oop?
What is inheritance and how many types of inheritance?
What is difference between abstraction and encapsulation?
Can we create object of interface?