Association and Generalization of UML

This Article explains about the other relationships of UML like
Association and Generalization

Generalization
---

The child is derived/based on the parent. The child will hold the properties of the parent. The properties, methods for these objects, their access modifiers like Public, Protected, Private will also be derived by the parent.

Example
----
The Shape is the parent object. It is derived by Square and Circle objects.

The Person is the parent object. It is derived by Student, Employee, Employer objects

Association
----

This explains about the relationship between the objects. This explains how the objects link to each other and how they communicate with each other and how the messages are transfer between the objects. This also represents the one to many and many to one relationships.

0..* - zero or more
1..* - one or more

Example
---
Bank is associated with customer. There will be more than one customer. But a customer will have only one account number. This customer will have one or more cheque books at a time


Comments

No responses found. Be the first to comment...