CSC/ECE 517 Fall 2009/wiki3 7 Single Choice Pattern am

From Expertiza_Wiki
Revision as of 20:30, 17 November 2009 by Afouzda (talk | contribs)
Jump to navigation Jump to search

Single Choice Principle

Introduction

Single Choice Principle states that whenever a software system must support a set of alternatives, one and only one module in the system should know their exhaustive list. It is one of the five principles of software construction as stated by Bertrand Meyer, the other four being the Linguistic Modular Units Principle, the Self- Documentation Principle, the Uniform- Access Principle, and the Open- Closed Principle. The Single Choice Principle may be viewed as a consequence of both the Open-Closed and information Hiding rules.

Violation of Single Choice Principle