 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
With
the previous class public section
|
|
|
– |
the
constructor might be changed to have an
|
|
|
integer
argument if we were implementing this
|
|
|
abstraction
with an array
|
|
|
|
– |
the
int return types for each member function
|
|
|
represent
the “success/failure” situation; if more
|
|
|
than
two states are used (to represent the error-
|
|
|
code)
ints are a good choice; otherwise, select a
|
|
|
bool
return type
|
|