Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Have students think about a reference to an object as a numeric memory address to help them understand how passing references works.

Share Have students think about a reference to an object as a numeric memory address to help them understand how passing references works. with FacebookShare Have students think about a reference to an object as a numeric memory address to help them understand how passing references works. with Twitter
  • Teaching students this deeper model of memory can often make more sense to them than something more abstract.
  • As such, have students conceptualize a references as numeric memory addresses, like 0x9FFF0 and 0x3106eb.
    • When an object is passed, its memory address is just being copied to the local variable being used.

More about this tip

Tags

  • CS 1
  • Intro Programming
External Source

Interview with Dave Musicant.

Other Tips By
Other Tips By Dave Musicant

Similar tips

Misconception: Students have trouble understanding that when the value of a variable is reassigned its previous value is irrelevant.
Emphasize that Scratch is REAL coding; this lets students know that programming in educational languages like Scratch or Python is valuable even though these languages aren’t commonly used in industry.
Have the class make instructions for a Robot class you created that will bring Chipotle back to the classroom to motivate instructions and method sequencing.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy