Skip to main content
CS Teaching Tips

Main navigation

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

Always use the keyword ‘this’ in Java, and trace through many examples, to help students understand it.

  • Structure assignments such that the following call must be used: obj.method(this)

More about this tip

Tags

  • Programming Concepts
  • Development Methods
  • Java
External Source

Interview with Steve Vegdahl

Other Tips By
Other Tips By Steve Vegdahl

Similar tips

Explain how inheritance allows the Java toString method to work when teaching printing to help students develop an understanding for how everything in Java is an object that has hierarchical relationships with other objects.
In Javascript, put off object-oriented design until last to avoid complexity students don’t need.
To build intuition about searching and sorting algorithms, have students engage in a kinesthetic activity where they unwittingly reproduce or create binary search and sorting algorithms.

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

Privacy Policy