Home Segments Index Top Previous Next

202: Mainline

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

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