CPSC 421 OOP RAII

12345678910111213141516171819
Across
  1. 2. What the A in RAII stands for
  2. 3. A resource must be properly ____ before use
  3. 4. A resource must be properly _____ after use
  4. 6. A problem with resources such as memory when we lose all access to them
  5. 7. A type of free (deallocation) performed more than once on the same allocation
  6. 10. What the R in RAII stands for
  7. 13. In RAII, the resource is typically allocated in the _____
  8. 15. What the second I in RAII stands for
  9. 16. A type of resource
  10. 17. A type of initialization where we wait to allocate until right before it is needed
  11. 18. One alternative to a smart pointer is to create a custom C++ _____
  12. 19. A resource must be properly ____ before use
Down
  1. 1. A type of resource (two words)
  2. 4. In RAII, the resource is deallocated in the ______
  3. 5. A resource must be properly ____ before use
  4. 7. Related to a programming idiom
  5. 8. A C++ smart pointer that is in the standard
  6. 9. A type of resource
  7. 11. A type of pointer that follows RAII
  8. 12. A recurring construct to fix a commonly occurring problem (two words)
  9. 14. A program may do this due to improperly-used resources