what are the disadvantage of multiple inheritance?
mrhunt 0
Newbie Poster
Recommended Answers
Jump to PostThe major problem that one must watch out for when using multiple inheritance is if more than one of the base classes are derived and one of their base classes is the same. Unless you use virtual inheritance, then you get two instances of that base-base class in each instance …
Jump to PostAs rubberman says, the possibility of repeated base-classes (which can be solved with virtual inheritance) is one problem. Another problem is with other ambiguities between inherited classes, like data members or member functions with the same name in the different classes (even if those members are private, the ambiguity will …
All 5 Replies
sneekula 969
Nearly a Posting Maven
rubberman 1,355
Nearly a Posting Virtuoso Featured Poster
mike_2000_17 2,669
21st Century Viking Team Colleague Featured Poster
Maritimo 15
Junior Poster in Training
Maritimo 15
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.