
Prelab Activities
Review
In Chapter 10 we introduced the strut, a C++ construct that represents a record. A
record binds data fields together into a heterogeneous structure in which the fields are
accessed by name. In this chapter, we introduce a second composite data structure in
which the fields are accessed by name: the class. The class binds data and functions
together into one structure. But first we discuss the abstract structure that the class was
designed to implement: the abstract data type.
Abstract Data Type
When you combine a variable or a collection of variables with the operations that
create and manipulate them, you have an abstract data ...