Peter,
 
In the first case, use multiple inheritance, where Child inherits from Parent1 and from Parent2. The second case suggests that Child is not a specialization of Parent1 or Parent2, instead it uses these classes' services. If so, Child should have an attribute of type Parent, with Parent1 and Parent specializing Parent. At runtime you decide the type of Parent that Child has.
 
If this is not the case, could you please elaborate more on your question, giving us concrete examples? 
 
hth,
Ricardo.
 
 -----Original Message----- 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Cohen
Sent: Tuesday, November 27, 2001 1:40 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) class inheritance: union or exclusive


hi All,

question:  how do I represent in a UML class diagram in Logical View of Rational Rose the two differing concepts:
1.  Child is a type of Parent1 AND Parent2
2.  Child is a type of Parent1 OR Parent2
?

thanks

Peter


Reply via email to