Skip to main content
CS Teaching Tips

Main navigation

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

Explain through metaphor that return values allow a primary function to get information from a secondary function.

  • More explicitly consider the following conversation metaphor: A primary function may ASK a secondary function a QUESTION by calling it. The secondary function RESPONDS by returning an answer.

More about this tip

Tags

  • Programming Concepts
External Source

Interview with Nick Melnyk

Other Tips By
Other Tips By Nick Melnyk

Similar tips

Ask students “Do we need a loop here?” to help them determine the appropriate loop to use without having to know the proper syntax to write that loop.
Match grammar constructs of nouns and verbs to classes and methods to help students understand what goes into a class because this helps make this difficult object-oriented programming construct easier to understand.
Become a part of the CS Teacher Community by attending CSTA events, attending SIGCSE, attending CCSC events, programming contests, and becoming an AP reader to get support and develop relationships with your peer group.

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

Privacy Policy