UML基础教程(课件)很好.pptVIP

  • 7
  • 0
  • 约1.7万字
  • 约 10页
  • 2023-09-19 发布于河南
  • 举报
3. 类图 右图描述了图形接口(Graphics)、线段(Segment)、矩形(Rectangle)、点(Point)和三维点(Point3D)之间的关系, 完成5-7题 (5)下面哪个关系没有在图中出现 ①关联 ②泛化 ③实现 ④依赖 (6)下面对图中①②③④四处的多重性的描述哪个不正确 ① 0...* ②1 ③0...* ④1 (7)下面哪份代码(Java)最接近于图中对Segment的描述 public class Segment implements Graphics { privatc void Draw(); public Point ptStart; public Point ptEnd; } ① public class Segment extends Graphics { public void Draw(); private Point ptStart; private Point ptEnd; } ② public class Segment implements Graphics { private Point ptStart; private Point ptEnd; public void Draw(); } ③ public class segment implement

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档