When to use Multiple Inheritance?

Answers were Sorted based on User's Feedback



When to use Multiple Inheritance?..

Answer / karthick

Multiple inheritance means the derived class inherits from
two or more base classes.

Is This Answer Correct ?    4 Yes 1 No

When to use Multiple Inheritance?..

Answer / nishikant sahu

When i want wrap the properties of more than one class into
a single entity(class) ,then i want to use MI,but strongly
recommend to avoid MI, if this scenario occur then you
design having some problem, and it cast a lots of issue and
overhead.

Is This Answer Correct ?    2 Yes 0 No

When to use Multiple Inheritance?..

Answer / divya

inheritance is a method which means objects of one class
get the properties of objects of another class. in this we
have 5 types of inheritance
multiple inheritance means deriving a class from two or
more base classes

Is This Answer Correct ?    1 Yes 1 No

When to use Multiple Inheritance?..

Answer / dasora

when do you like inherit from more than two class
it is called multiple inheritance

Is This Answer Correct ?    0 Yes 1 No

When to use Multiple Inheritance?..

Answer / dee

Multiplae inheritance is used when we want to reuse the
code from 2 ro 3 classes.

Is This Answer Correct ?    0 Yes 2 No

When to use Multiple Inheritance?..

Answer / meenu kathuria

Multiple Inheritance:
to acquire properties of two or more classes in a single class.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C++ General Interview Questions

What is enum class in c++?

0 Answers  


what is smart pointer & use of the smart pointer ???

2 Answers  


Does improper inheritance have a potential to wreck a project?

0 Answers  


What is heap sort in c++?

0 Answers  


What is a storage class? Mention the storage classes in c++.

0 Answers  






What is a pointer how and when is it used?

0 Answers  


Can you please explain the difference between static and dynamic binding of functions?

0 Answers  


You want to link a c++ program to c functions. How would you do it?

0 Answers  


What do you mean by public protected and private in c++?

0 Answers  


How to stop conversions among objects?

5 Answers   Symphony,


Write about a nested class and mention its use?

0 Answers  


A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.

0 Answers  


Categories