Question: 2 . 5 . What is the major problem with multiple inheritance and when is it permissible and why? A . Multiple inheritance leads to

2.5. What is the major problem with multiple inheritance and when is it permissible and why?
A. Multiple inheritance leads to the infamous diamond problem and it's only permissible if the
superclasses are interfaces. Otherwise, it would lead to ambiguity and low readability of the
code.
B. Multiple inheritance leads to the infamous diamond problem and it's never permissible, as it
causes ambiguity and decreases the readability of the code.
C. Multiple inheritance is always a beneficial feature, and diamond problem does not happen in
practice. That's why C++ allows it.
D. Multiple inheritance leads to the infamous diamond problem and it's only permissible if the
superclasses are static classes. Otherwise, it would lead to ambiguity and low readability of
the code.
2 . 5 . What is the major problem with multiple

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!