摘要: http://zhidao.baidu.com/question/37280863.html1.A dependency exists between two elements if changes to the definition of one element (the supplier) may cause changes to the other (the client). With classes,dependencies exist for various reasons: One class sends a message to another; one class has an 阅读全文
posted @ 2011-03-30 16:04 mazhlo 阅读(329) 评论(0) 推荐(0) 编辑
摘要: uml中有6个关系:http://www.cnblogs.com/ForEverKissing/archive/2007/12/13/993818.html1. 关联:连接模型元素及链接实例,用一条实线加箭头来表示;2. 依赖:表示一个元素以某种方式依赖于另一个元素,用一条虚线加箭头来表示;3. 组成:表示整体与部分的有一关系,用一条实线加实心菱形来表示;(关联,依赖,聚集,组成的异同见后描述)4. 聚集:表示整体与部分的关系,用一条实线加空心菱形来表示;5. 泛化(继承):表示一般与特殊的关系,用一条实线加空心箭头来表示;6. 实现:表示类与接口的关系,用一条虚线加空心箭头来表示; 阅读全文
posted @ 2011-03-27 17:08 mazhlo 阅读(328) 评论(0) 推荐(0) 编辑