UML类图关系(泛化 、继承、实现、依赖、关联、聚合、组合)
发布日期:2021-04-30 21:06:01 浏览次数:229 分类:精选文章

本文共 1273 字,大约阅读时间需要 4 分钟。

???????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????

1. ???Inheritance?

?????????????????????????????????????????????Java????????extends?????????Tiger???Animal????Tiger???????????????

2. ???Implementation?

?????????????????????implements?????????????????????MyList??List??????add?remove????

3. ???Dependency?

???????????????????????????????????????????????????????????????

4. ???Association?

????????????????????????????????????????????????????Employee?????????Project???

5. ???Aggregation?

????????????????????????????????????Computer??????CPU?Memory????

6. ???Composition?

?????????????????????????????????????????????????????????????????????????????????

????????

  • ?????????????????????????????????????????????????
  • ???????????????????????????????????????????
  • ?????????????????????????
  • ?????????????????????????????????????

UML????

?UML????

  • ???Generalization???????????????
  • ???Association?????????????????
  • ???Dependency???????????????
  • ???Aggregation???????????????????
  • ???Composition?????????????????

????

???Computer????

  • ???Computer??OS?CPU?
  • ???Computer????Printer?
  • ???Computer??CPU?Memory?HardDrive?
  • ?????Computer?Keyboard?????????Keyboard???????

????????????????????????????????????????????????

上一篇:进制转换的相互转换习题
下一篇:自定义一个注解+注解处理器

发表评论

最新留言

感谢大佬
[***.8.128.20]2026年05月28日 22时27分02秒