Chapter Summary


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

prev |top