answersLogoWhite

0

Not all of them do; C++ uses multiple inheritance.

The designers of Java decided to do away with several aspects of C++ that may cause confusion, this includes multiple inheritance, pointers, and several other aspects.

The possible confusion with multiple inheritance arises when both parents have a method or field with the same name. Which one to use in the child?

To have some of the benefits of multiple inheritance, Java supports interfaces instead. A class can implement multiple interfaces.

User Avatar

Wiki User

15y ago

What else can I help you with?