principles:information_hiding_encapsulation
This is an old revision of the document!
Table of Contents
Information Hiding/Encapsulation (IH/E)
Variants and Alternative Names
Context
Principle Statement
Description
Rationale
Strategies
Origin
Evidence
Relations to Other Principles
Generalizations
Specializations
Contrary Principles
- Keep It Simple Stupid (KISS): Not adhering to IH/E is often easier.
Complementary Principles
- Model Principle (MP): IH/E demands having an interface for a module which hides the inner workings. MP tells how such an interface can look like.
- Liskov Substitution Principle (LSP): For subclasses you can waken encapsulation by having a wider
protected
interface which can be used by subclasses. For these cases LSP has to be considered, too. - Tell, don't Ask/Information Expert (TdA/IE):
- Low Coupling (LC):
Principle Collections
Example
Description Status
Further Reading
principles/information_hiding_encapsulation.1360605606.txt.gz · Last modified: 2013-05-19 22:10 (external edit)