Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAVA UML diagram - do not understand it.

807599Mar 11 2007 — edited Mar 12 2007
Hi 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2007
Added on Mar 11 2007
26 comments
296 views