what is multi level inheritance give n example ?
Answer Posted / roshan p r
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..
ClassA
^
|
|
ClassB
^
|
|
ClassC
| Is This Answer Correct ? | 336 Yes | 49 No |
Post New Answer View All Answers
What is difference between inheritance and polymorphism?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is the purpose of enum?
write a C++ program for booking using constructor and destructor.
Prepare me a program for the animation of train
hi all..i want to know oops concepts clearly can any1 explain??
What are oops functions?
What is the real life example of polymorphism?
Why do we use oops?
What is oops?what is its use in software engineering?
What is multilevel inheritance in oop?
What is encapsulation in simple terms?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is the main purpose of inheritance law?
What is encapsulation example?