CS174: Module 10: Object References / Linked Lists

Developed by Professor Tralie and Professor Mongan.


Please watch the video below, and click the next button once you have finished

Notes

  • Object reference pitfall 1: you should only delete objects that you've allocated dynamically with a new
  • Object reference pitfall 2: Since object values declared in a method are deleted when the method completes, you will get a segfault if you return and try to use references to them.