Class 2 |
Intermediate Java 30-IT-397 |
|
Class Diagram
-
Resource: http://www.smartdraw.com/resources/centers/uml/uml2.htm.
-
The highlights:
-
Class diagrams represent the classes that make up a program, their methods,
and their instance fields (attributes).
-
A class diagram has boxes that represent classes. Each class has
exactly one box.
-
The box is divided into three panes:
-
The top pane has the name of the class.
-
The middle pane has attributes (instance fields) of the class. This
includes the type of attribute and any initial value.
-
The bottom pane has the methods of the class. This includes the parameters
passed to the methods and the return type.
-
If you leave the either or both of bottom two panes blank, to save space
or because attributes and/or methods do not exist, you must still divide
the box into three parts.
Decorating your Class Diagram

Created by: Brandan Jones
December 17, 2001