multiple inhiretance.

N

NileshKorpe

Can Somebody please point some of the dis advantages of multiple
inhiretance.
 
R

Rolf Magnus

NileshKorpe said:
Can Somebody please point some of the dis advantages of multiple
inhiretance.

Do you really think just repeating the question will give you different
answers?
 
N

NileshKorpe

dear it seems it was mispelled last time,and many guys could not
understand it.
 
G

Gernot Frisch

Can Somebody please point some of the dis advantages of multiple
inhiretance.

An aligator can walk on land and it can swim in water. Thus, it
inherits "swimable" and "walkable" but not "flyable".
Stupid example, but there are good resons for it.
You can have all objects derive from "XObject" for debugging/logging
and also from "DObject" for drawing/visualization.
 
V

VSkhedekar

To state the major disadv. of multiple inheritance is that if
the performance is the major criteria then multiple inhritance
is definately going to cost a lot.
 
F

Fingarc

NileshKorpe said:
Can Somebody please point some of the dis advantages of multiple
inhiretance.

The disadvantages include all of the same for single inheritance plus
ambiguity, the child inherits two or more different functions with the
same name from different parents, and reduncency, when the child
inherits two or more functions that have the same functionality but
with different names or when data fields in more than one parent are
used for the same purpose. These problems increase complexity.
Coupling is increased and coheision decreases.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,078
Latest member
MakersCBDBlood

Latest Threads

Top