3 ms·
Robot dogs inherit from robot and dog. Mammalian dogs inherit from mammal and dog.
by lupire 5y ago
Robot dogs inherit from robot and dog. Mammalian dogs inherit from mammal and dog.
- suzzer99 5y agoIn a multiple inheritance world yes. But I think most C++ devs decides that led to a big mess in large systems. Supposedly one of the best things about Java was no multiple inheritance.
- pjmlp 5y agoExcept it happens that there are architecture scenarions where multiple inheritance makes sense, so all major languages have it in some form anyway. In what concerns Java you have multiple inheritance of interfaces, and as of Java 8, traits. Windows C++ frameworks, from Microsoft and Borland/Embarcadero make use of multiple inheritance.