posts - 6,  comments - 0,  trackbacks - 0
<2006年8月>
303112345
6789101112
13141516171819
20212223242526
272829303112
3456789

常用链接

留言簿(1)

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜

relation in the OOAD

dependency : the most relation between two classes
association: if one class is one member of the other class
aggregation: one association relation. Two objects have the "has a" relation and have different life cycle. Usually client can set the member object when create one new object. (that is to say, the outer class has one constructor which has one parameter of inner class).
composition: Relation is tighter than aggregation. Two objects have the "contains a" relation and have same life cycle. Usually the inner object is created by outer object. (that is to say, the inner object is create in the constructor of outer object)

posted on 2006-08-29 11:27 wing 阅读(229) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。