CSC/ECE 517 Fall 2010/ch7 7d ID

From Expertiza_Wiki
Revision as of 03:40, 2 December 2010 by Avenkat4 (talk | contribs)
Jump to navigation Jump to search

Introduction

GRASP(General Responsibility Assignment Software Patterns)in object oriented design gives guidelines for assigning responsibility to classes and objects. Some of the guidelines include the following:

  1. To assign a responsibility to a class
  2. To avoid or minimize additional dependencies
  3. To maximise cohesion and minimise coupling
  4. To increase reuse and decrease maintenance
  5. To maximise understandability

There are nine GRASP patterns: Creator, Controller, Pure Fabrication, Information Expert, High Cohesion, Indirection, Low Coupling, Polymorphism and Protected Variations. In this chapter we will look at the Indirection design pattern with some examples.