Home Segments Top Top Previous Next

237: Mainline

Collectively, constructors, getters, and setters sometimes are called access methods. When you move representation detail into a set of access methods, you are said to be practicing data abstraction, and you are said to be hiding the details of how data are represented behind a data-abstraction barrier.

Good programmers carefully design into their programs appropriate access methods so as to create data-abstraction barriers.