| Lecture 5 - Slide 16 : 40|
Multiple inheritance - issues
Let us understand the major reason why multiple inheritance may be considered problematic
- Concrete problem
- In a C object ac: Which x does ac.x refer to?
- Aspects of multiple inheritance
- Name clash: Does x in C refer to the x in A or the x in B?
- Selection: Do we have means in C to select either x in A or x in B?
- Combination: Can x in A and x in B be combined to a single x in C?
- Replication: Is there one or two x pieces in C?