CSC/ECE 517 Fall 2010/ch7 7d ID: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Introduction
==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:
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:

Revision as of 03:40, 2 December 2010

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.