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

Ensure that your courses have clear expectations about prerequisite knowledge so all students are well-equipped for class material.
Prototype Makey Makey, a simple invention kit for the classroom that helps students turn everyday items into keyboard buttons, to bring Scratch programming projects into the real world and engage your students.
Show a variety of for loops conditionals (e.g., < vs. <=; different variable names, different start values, different increment operations) to avoid common misconceptions about loops.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College