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