Computer Science Homework Help

Towson University Multiple Inheritance Discussion Question

 

Help me study for my Computer Science class. I’m stuck and don’t understand.

Among object-oriented languages, one feature that varies considerably is whether the language allows multiple inheritance. C++ does but Ada does not. Java takes a middle ground approach of allowing multiple inheritance of interfaces but not classes. Using a C++ example, illustrate some of the complexities that multiple inheritance introduces. How does C++ deal with them? Why does Java’s middle ground approach offer some of the benefits of multiple inheritance while avoids its problems.