What is multiple inheritance ?
Answers were Sorted based on User's Feedback
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 |
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 |
Multiple Inheritance occurs when a class inherits from more
than one parent.
| Is This Answer Correct ? | 8 Yes | 1 No |
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 |
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 |
Answer / vikram
A derived class with more than one base class is known as
multiple inheritance.
| Is This Answer Correct ? | 4 Yes | 0 No |
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 |
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 |
explain sub-type and sub class? atleast u have differ it into 4 points?
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?
wht is major diff b/w c and c++?
When you define a integer it gets stored in which data structure?(Stack or a heap)
How is exception handling carried out in c++?
What is friend function?
What is memory leak and memory corruption?
what is oppes
Difference between realloc() and free?
• What are the desirable attributes for memory managment?