What do you mean by multiple inheritance and multilevel
inheritance? Differentiate between them.

Answers were Sorted based on User's Feedback



What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them...

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

What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them...

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

Post New Answer

More OOPS Interview Questions

INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

0 Answers  


what are the realtime excercises in C++?

0 Answers   IBM, Wipro,


class type to basic type conversion

0 Answers  


What are the types of abstraction?

0 Answers  


where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?

2 Answers   Infosys, Microsoft,






Write on signed and unsigned integers and give three (3) examples each

1 Answers  


Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

0 Answers   TCS,


what is virtual function in c++

6 Answers  


how do you handle yourself when you feel the wald is aganist you

2 Answers  


Is html an oop?

0 Answers  


What do you mean by variable?

0 Answers  


how to find no of instances of an object in .NET?

1 Answers   Infosys,


Categories