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.

Share Always use the keyword ‘this’ in Java, and trace through many examples, to help students understand it. with FacebookShare Always use the keyword ‘this’ in Java, and trace through many examples, to help students understand it. with Twitter
  • 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

Be careful to introduce code that students are equipped to understand; otherwise, students may not be able to demonstrate their comprehension.
Use 20 Questions as a way to introduce binary to help motivate the way binary works in an engaging and interactive activity.
Have students write methods that perform tasks of a standard music player in Java to give them practice manipulating data structures in a familiar context.

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

Privacy Policy