« Back

Inherit relations

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Inherit relations
community relation documentation
Answer
3/27/14 12:10 PM
 I have two clases: one called "A" and the other called "B". The last one has two sub-clases "BA" and "BB" and there´s also a relation between A and B (aPb). I would like to know if there is the possibility to also relate "A" with "BA" or "BB" without defining two other relations.What I mean is that I want "BA" and "BB" sub-classes inherit the relation aPb. I've been trying some things but i couldn't make them work. How should I define the relation?

RE: Inherit relations
relation inherit
Answer
1/8/14 7:31 AM as a reply to Anonymous.
 If you have class A, class B and relation class aPb from A to B and then you derive class BA from class B, you can draw a connector of type aPb from an instance of class A to an instance of class BA.