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 |
What is object and class in oops?
What is the main difference between C++ and Java
What are the benefits of polymorphism?
write a function that takes an integer array as an input and finds the largest number in the array. You can not sort array or use any API or searching needs?
2 Answers IBMS, Zycus Infotech,
What is data binding in oops?
What do you mean by abstraction?
Why is there no multiple inheritance?
What is ambiguity in inheritance?
all about pointers
who is the founder of c++?
What is encapsulation selenium?
What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?