What do you mean by multiple inheritance and multilevel
inheritance? Differentiate between them.
Answers were Sorted based on User's Feedback
Answer / ramya
multiple inheritance is the class derived from more than
one base class & where as coming to multilevel inheritance
it derives one class to one base class via intermediate
base class
Is This Answer Correct ? | 39 Yes | 13 No |
Answer / ravinder kumar
Multiple: ClassA--extends-->ClassB, ClassA--extends--
>ClassC, ClassA--extends-->ClassD class A can Inherit all
the classes and can have access on all calss' public
properties and functions.
MultiLevel: ClassA-->ClassB-->ClassC-->ClassD and ClassD
will have the accesss on all the properties of its upper
level class like C,B and A
Is This Answer Correct ? | 30 Yes | 14 No |
How does polymorphism work?
What are virtual classes?
Why do we use polymorphism in oops?
Why static functions always uses static variables?
Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What are the benefits of oop?
What is abstraction in oop with example?
how to tackle technical questions
to find out the minimum of two integer number of two different classes using friend function
What is the advantage of oop over procedural language?
Out of 4 concepts, which 3 C++ Follow?