What is multiple inheritance ?

Answers were Sorted based on User's Feedback



What is multiple inheritance ?..

Answer / aswini.s

one derived class with several base class.

Is This Answer Correct ?    29 Yes 6 No

What is multiple inheritance ?..

Answer / sri

Multiple Inheritance is that one derived class having more
than one base class.

C/C++ will support multiple inheritance.
Java does not support multiple inheritance.

Is This Answer Correct ?    23 Yes 3 No

What is multiple inheritance ?..

Answer / rohan

[Base Classes]
music name height
\\ || //
\\ || //
\\ || //
\\ || //
Musician
[Example of multiple
inheritance]
Def.: A class derived from 2 or more superclass is called a
class inherited from by multiple inheritance.

Is This Answer Correct ?    21 Yes 1 No

What is multiple inheritance ?..

Answer / narasimulu

Multiple Inheritance occurs when a class inherits from more
than one parent.

Is This Answer Correct ?    8 Yes 1 No

What is multiple inheritance ?..

Answer / sivaramakrishnan

Inheritance is the process of creating new class called
derived from the existing or base class.
A derived class with more than one base class is known as
multiple inheritance.

Real time example: A children inherits features from both
father(base1) and mother(base2)

Is This Answer Correct ?    7 Yes 0 No

What is multiple inheritance ?..

Answer / sudha i r

multiple inheritence means the class(child class) inherited
from multiple base class(parent class)

Is This Answer Correct ?    5 Yes 1 No

What is multiple inheritance ?..

Answer / vikram

A derived class with more than one base class is known as
multiple inheritance.

Is This Answer Correct ?    4 Yes 0 No

What is multiple inheritance ?..

Answer / funny guy

Multiple Inheritance is a feature of OOPS where the derived
class can extend features from more than one class.

That means if we have class A and class B then class C can
extend class A and class B.

Having said that from Java point of view this feature is not
supported as it may result in Diamond Problem.

C++ does support this features.

Is This Answer Correct ?    4 Yes 1 No

What is multiple inheritance ?..

Answer / shivaramraje nimbalkarjoshi

The mechanism in which , A Call which is created my
deriving more than one classes is called Multiple
Inheritance.

Is This Answer Correct ?    7 Yes 5 No

What is multiple inheritance ?..

Answer / raj

one derived class with several base class.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is a scope operator and tell me its functionality?

3 Answers   emc2,


What is R T T I ?

6 Answers   Ness Technologies,


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

4 Answers  


What is abstrac class?where is it use?

2 Answers  


What is the difference between Home and $Home?

2 Answers   TCS,






What is polymorphism ? Explain with examples

8 Answers   Ness Technologies,


Can main method override?

0 Answers  


What is the difference between C++ and java?

6 Answers   Atos Origin,


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,


State what is encapsulation and friend function?

0 Answers   BirlaSoft,


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


What are two types of polymorphism?

0 Answers  


Categories