C++ multi-inheritance

vql's Avatar, Join Date: Sep 2007
vql
Go4Expert Member
It said that C++ have disadvantages like as multi-inheritance. Because modern languages (C#, Java) don't use multi-inheritance, and they replace with the keyword interface. Anyone tell me why C++ have disadvantage about multi-inheritance, and try give me an example. Thanks.

Final, please tell me other disadvantages of C++. Thanks a lot.
0
vql's Avatar, Join Date: Sep 2007
vql
Go4Expert Member
Anyone can help me? I am learning C++. Thanks.
0
DaWei's Avatar, Join Date: Dec 2006
Team Leader
The advantage of multiple inheritance is that you can inherit functionality from more than one object. Obviously, it would be bad if both objects had a member with the same name. It can also lead to unwarranted complexity. An interface is not multiple inheritance. C# and Java use virtual machines. Thus, their efficiency is reduced.

For questions like this, you should either study the materials that have been provided to you, or resort to Google. The answers are not simple or cast in concrete. You might have a look here.