Wednesday, February 14, 2007

Class Normalization

Class normalization is a process by which you reorganize the structure of your object schema in such a way as to increase the cohesion of classes whilst minimizing the coupling between them.

  • First Object Normal Form (1ONF) - remove repeating groups of behavior from a class
  • Second Object Normal Form (2ONF) - 'shared' behavior needed by >1 instance of the class is encapsulated within its own class(es)
  • Third Object Normal Form (3ONF) - each class encapsulates only one set of cohesive behaviors

No comments: