n Require the user to redefine the conflicting attributes or methods.
n Raise an error and prohibit the definition until the conflict is resolved.
Repeated inheritance is a special case of multiple inheritance where the superclasses
inherit from a common superclass. Extending the previous example, the classes Manager
and SalesStaff may both inherit properties from a common superclass Staff, as illustrated
in Figure 25.7. In this case, the inheritance mechanism must ensure that the SalesManager
class does not inherit properties from the Staff class twice. Conflicts can be handled as discussed for multiple inheritance.
Selective inheritance allows a subclass to inherit a limited number of properties from
the superclass. This feature may provide similar functionality to the view mechanism
discussed in Section 6.4 by restricting access to some details but not others.