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 are two types of polymorphism?
What is multiple inheritance?
What do you mean by pure virtual functions?
What is an example of genetic polymorphism?
some one give d clear explanation for polymorphism
I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?
How do you answer polymorphism?
WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??
21 Answers Biocon, MIT, NIIT,
How would you stop a class from class from being derived or inherited.
Write a program to sort the number with different sorts in one program ??
Why is object oriented programming so hard?
What is property in oops?