View this PageEdit this Page (locked)Attachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Tips and Basics of UML Class Diagrams -Liz Ha

UML Class Diagrams provide an overview of your entire program.

Template to draw a class:


To describe a class:


To describe relationship between the classes:



An example:


In the above Class Diagram, it depicts two classes: class Car and class Engine.

Looking at class Car, you can see that it has:
Looking at class Engine, you can see that it has:
The line and diamond shape between the two boxes shows that Car has an Engine as a component part.
The 0..1 above that line toward Engine shows that the engine is option (Car may have no engine or 1 engine)


Link to this Page