
223
Chapter 8
Design Alternatives
and Perspectives
D
. Frequently, multiple solutions exist for a
given problem. How does one recognize an optimal, or even a prefer-
able, design? How does a class designer balance short-term and long-term
costs and benets?
To highlight and explain design evaluation, we contrast dierent design
solutions in this chapter. We begin by examining the class construct from
design and use perspectives. Bjarne Stroustrup, the architect of C++, enu-
merated several dierent design types of classes, and we illustrate some
of them here to identify motives for selection and clarify terminology.
We then exa ...