What do you mean by multiple inheritance and multilevel
inheritance? Differentiate between them.
Answer Posted / 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 |
Post New Answer View All Answers
How do you answer polymorphism?
write a C++ program for booking using constructor and destructor.
Can a destructor be called directly?
How oops is better than procedural?
Can we define a class within the interface?
What is the difference between a mixin and inheritance?
What do you mean by variable?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
what are the realtime excercises in C++?
What is inheritance in simple words?
What is the diamond problem in inheritance?
Why is polymorphism needed?
Is this job good for future? can do this job post grduate student?
What is cohesion in oop?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)