Class Diagram
2015-11-17 14:16:45 0 举报
设计模式作业
作者其他创作
大纲/内容
Rectangle
- int Width- int Height
+ void draw()
Shape
- int x- int y
+ abstract void draw()
RectangleShapeFactory
+ Shape createShape()
ShapeFactory
+ abstract Shape createShape()
Circle
- int r
LineShapeFactory
CircleShapeFactory
Line
- int x1- int y1- int x2- int y2
收藏
0 条评论
下一页