Object Oriented Programming using C#

(backadmin) #1

Object Oriented Programming using C#
The Unified Modelling Language (UML)


Feedback 2

The diagram below shows this information

Denoting Relationships


As well as denoting individual classes, Class diagrams denote relationships between classes. One such relationships is
called an ‘Association’. We will learn a lot more about associations in Chapter 6 where we look at how to model an object
oriented system. Here we are just learning the UML notation we will be using later.


In a class attributes will be defined. These could be primitive data types (int, boolean etc.) however attributes can also be
complex objects as defined by other classes.


Thus the figure above shows a class ‘OneClass’ that has an attribute ‘value’. This value is not a primitive data type but is
an object of type defined by ‘OtherClass’.


We could denote exactly the same information by the diagram below.

Free download pdf