what is multi level inheritance give n example ?
Answers were Sorted based on User's Feedback
Answer / adil jan
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.
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / vidhya
The process of inheriting a new class from the already inherited class is called as multilevel inheritance.
example:
Class A
|
|
Class B
|
|
Class C
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / desh
A class which is derived from another class and it can also
be derived by an another class is known as multilevel
inheritance.{combination of two or more simple inheritance
in a same program are also called as multilevel inheritance.}
example: hen->chick->egg.
animals
/ \
/ \
herbivorous carnivorous
/ \ / \
goat cow lion snake
| Is This Answer Correct ? | 12 Yes | 19 No |
why to use template classes in c++?
What is for loop and its syntax?
What is methods in oop?
what is main difference between object oriented object base
Which is the parameter that is added to every non-static member function when it is called?
What is Virtual Keyword?
What is use of overloading?
What is encapsulation in ict?
You have one base class virtual function how will call that function from derived class?
how to swap the variables without using temp and operators
OOP'S advantages of inheritance include:
Precompilation ?