組合檢視 平均檢視 瀏覽樹狀資料
相關串連 [ 前一個 | 下一個 ]
toggle
Inherit relations
community relation documentation
答覆
2014/3/27 下午 12:10
 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
答覆
2014/1/8 上午 7:31 作為回覆給匿名
 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.