JAVA UML diagram - do not understand it.
807599Mar 11 2007 — edited Mar 12 2007Hi guys,
Can someone explain to me what this means, I know + is public and - is private but thats about it. I know the top square is the public class name, the second the variables, but im confused about the third, what do they mean and how am i supposed to create a program from them.
Thanks Guys.
_____________________________
Rectangle
_____________________________
- width : int
- height : int
____________________________
+ Rectangle(int, int )
+ getWidth( ) : int
+ getHeight( ) : int
+ calcArea( ) : int
+ equalArea( Rectangle ) : boolean
____________________________
The equalArea method returns true if the area of the Rectangle object and the Rectangle passed as a parameter are equal.