Skip to main content
CS Teaching Tips

Main navigation

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

Use realistic examples of class variables to increase understanding.

  • For example, consider a student class that allocates unique ID numbers sequentially to students.
    • The class would need a variable to store the next available unique ID number.

More about this tip

Tags

  • CS 1
  • Intro Programming
  • Meaningful and Relevant Content
External Source

Interview with Charlie McDowell

Other Tips By
Other Tips By Charlie McDowell

Similar tips

Play musical chairs to explain while loops so students develop physical experience navigating through the structure of a loop to better understand while loops.
Introduce the mnemonic “Burger King Makes Great Toast” for memorizing the order of data sizes “Byte, Kilobyte, Megabyte, Gigabyte, and Terabyte” to aid students remembering this information.
Avoid using x and y as variable names to prevent students from confusing variable assignments with mathematical expressions.

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

Privacy Policy