UML Notation


| Site Map | HomePage | OOP Concepts | OOP Design | Glossary | Evaluation/Comments |

If you have come from the OOP Concepts section, you will know how to make a list of potential objects and the methods employed to refine them.

If you do not know how to do this then please refer to OOP Concepts and look under objects, then class.


To draw a class diagram in UML (that's Unified modelling Language) lets start of by looking at a class diagram, The first diagram is off PERSON Class. (The example from objects)

For those who have not viewed Objects, the private data structure called Person has the following attributes.

1. First name
2. Last name
3. Age
4. Weight

with the following methods or operations for The Person object:-

1. set_first_name
2. get_first_name
3. set_last_name
4. get_middle_name etc..

To draw this in UML Notation, look at the diagram shown below.

A rectangle box is drawn, which is partitioned into three sections.

The top section is were you put the name of the class.

The middle section is for the attributes (your attributes are private), next to your attribute name, you put the data type.

the bottom section you write the operations (which are going to be used to change the state of the attributes)



Click here to try UML Notation Test

Graphical Notation >>


RECOMMENDED WEB SITE AND BOOK

For those wishing to learn more and get into the nitty gritty about UML notation, a good web site is: Rational Software (UML Resource Center)

For those who prefer to read a book,

The Unifified Modelling Language reference Manual (1991) written by Rumbaugh, J and jacobson, I and Booch, G. Published by Prentice Hall


Links to the rest of the site:
| Site Map | HomePage | OOP Concepts | OOP Design | Glossary | Evaluation/Comments |

Author: Deniz Zubair Choudhury
Last Update: May 1999