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 |
What is polymorphism and example?
What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.
How Do you Code Composition and Aggregation in C++ ?
Write a program in c++ to read two floating point numbers and find their sum and average.
What is deep and shalow copy?
What is polymorphism ? Explain with examples
What is difference between oop and pop?
difference between overloading and overridding
What is the purpose of polymorphism?
what is the difference between class and structure in C++?
What is a unary operator?