Monday, November 16, 2009

Deciding on the classes and methods from a use case.

Easy way to find out the classes and the methods you need to create from a use case. This helps in creating the correct objects and the correct behaviours associated with the objects.

Step 1

1. Identify Nouns in the use case.

2. Isolate the nouns which belong to the system and those which are external to the system.

(ex: A person using the system is external to the system)

3. The nouns which are internal to the System form the classes.

Step 2

1. Identify Verbs in the use case.

2. The verbs which act on nouns which are internal to the system form the methods.

*Noun - a content word that can be used to refer to a person, place, thing, quality, or action

**Verb - a content word that denotes an action, occurrence, or state of existence

Friday, February 6, 2009

Aggregation...


Aggregation is essentially the ability to embed or nest instance(s) of one type of class within another type of class.

The simplest way to read the diagram shown alongside is. Consider the diamond as an Arrow which points to the Parent.

Therefore, here the PersonDetailsList is the parent which contains a list of PersonDetails.