18.4 (cont.) "The Big 3" (revisit)
The "Big 3":
- Copy constructor
- Assignment operator
- Destructor
- All have default behavior, as does the default c'tor
- Behavior sometimes needs to be extended
- Reason to define one => reason to define all 3 (or all 4)
- Build all 3 on lower-level helper methods
prev
|top
|next