Software Design Patterns

Encapsulation

Encapsulation: the gathering together into one unit of all aspects of the real-world entity modeled by that unit. - Classical And Object-Oriented Software Engineering

I'm not crazy about that definition because not all abstractions that encapsulate will represent a 'real-world' entity. An Array or HashTable does not represent a real-world entity yet it still encapsulates.

0 Comments