what is multi level inheritance give n example ?
Answer Posted / 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 |
Post New Answer View All Answers
What are the benefits of polymorphism?
What is abstraction with example?
How do you define a class in oop?
Why do we use encapsulation in oops?
Explain the advantages of inheritance.
Why do we use polymorphism?
What is the difference between procedural programming and oops?
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 abstraction in oop?
How do you define social class?
How to hide the base class functionality in Inheritance?
class type to basic type conversion
What are the two different types of polymorphism?
What is advantage of inheritance?
can we make game by using c