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 an example of genetic polymorphism?
Can we define a class within the interface?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
WHEN A COPY CONSTER IS CALL ?
what is SPL in c++.
What are main features of oop?
What is namespace?
What is the concept of object oriented program?
How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram