Home Segments Top Top Previous Next

139: Mainline

When you move computational detail into a method, you are said to be doing procedure abstraction, and you are said to be hiding the details of how a computation is done behind a procedure-abstraction barrier.

The key virtue of procedure abstraction is that you make it easy to reuse your programs. Instead of copying particular lines of program, you—or another programmer—arrange to call a previously defined method.