Analysis into classes and relations

Analyze the problem into conceptual objects and their relations.

Is an art, with various approaches.

Semantic analysis

from written problem description

  1. Write out problem in human language as much detail as possible.

  2. Collect all the nouns in the text. These will be the objects.

  3. Look for properties of the nouns ("name", "value"). These will be member variables;

  4. Collect verbs, paying attention to which nouns are subject and objects of the verbs. These will be member methods.

  5. Collect all relations between nouns, paying special attention to phrases such as "is a", "is a kind of", "consists of", "is part of", and questions of number "one or more", "exactly one". These will be class relations.

Views

Various views may be appropriate: