Chapter Summary
- Memory is divided into four areas
- Pointers can refer to memory in any of the four areas
- Initialization errors can occur in any of the four area
- Stack-based memory is tied to function entry and exit
- Simple objects can be sliced. Use references or pointers
- C'tors tie memory allocation with object initialization. Copy
c'tors create copies of objects
- D'tors return resources when an object is deallocated. The "Big 3"
- Reference counts can be used to track shared resources
prev
|top