You'll need to sign into your MSOE account VidGrid to see the videos.
In this module, you will learn about deep and shallow copies.
- What gets copied when we assign reference variables?
- What problems can occur as a result of a shallow copy?
- What is the difference between a deep copy and a shallow copy?
- What does the
Object.clone()make a deep or a shallow copy?
- When is the
- Take notes on the video below and upload your notes to Canvas to complete the assignment
- Watch [8:45] [link]
- Watch [4:24] [link]
Draw two memory diagrams: one showing a shallow copy of a linked list, and one showing a deep copy of the same list. Scan your notes and the drawings and upload them to Canvas.