正在加载图片...
Classes a class is simply represented as a box with the name of the class inside The diagram may also show the attributes and operations The complete signature of an operation is operationName( parameter Name: parameter Type.) return Type Rectangle Rectangle RectangleRectangle Rectangle getArea hei ght height height: int resize idth width width int getArea getArea(: int 柔e( int, int) www.oseng.com O Lethbridge/Laganiere 2001 Chapter 5: Modelling with classes© Lethbridge/Laganière 2001 Chapter 5: Modelling with classes 7 Classes A class is simply represented as a box with the name of the class inside • The diagram may also show the attributes and operations • The complete signature of an operation is: operationName(parameterName: parameterType …): returnType Rectangle height: int width: int getArea(): int resize(int,int) Rectangle height width getArea resize Rectangle height width Rectangle getArea resize Rectangle
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有