Before You Start…
Remember from way back at the beginning of the semester—all objects go through the same phases of object lifetime!
The five phases are
- Allocation
- Initialization
- Use
- Destruction
- Deallocation
We can separately think about when each stage of object lifetime happens and how each stage of object lifetime happens.
Today we're going to do just that!
We'll also separate out how arrays, references, and data members interact with object lifetime.
Strictly speaking, there's very little new in today's lesson.
Instead, we're going to take some time to sort through the ideas you've already seen, to make sure they're clear before we move on to writing our own data structures.
(When logged in, completion status appears here.)