Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: Students think that it’s possible to write methods that add attributes to a Java class.

Share Misconception: Students think that it’s possible to write methods that add attributes to a Java class. with FacebookShare Misconception: Students think that it’s possible to write methods that add attributes to a Java class. with Twitter
  • Explain to students that the attributes of a Java class are fixed upon its creation.
  • Explain that even though that's not how Java works, it is a reasonable idea and many languages allow that (e.g. JavaScript, Ruby, & Python).

More about this tip

Tags

  • Content Misconceptions
  • CS 1
  • Intro Programming
External Source

"Visual program simulation in introductory programming education" by Juha Sorva.

Other Tips By
Other Tips By Juha Sorva

Similar tips

Ensure that your courses have clear expectations about prerequisite knowledge so all students are well-equipped for class material.
Use Chortle as a great online resource that helps students learn Java for the AP test.
Spend extra time teaching Big O in intro classes that use Python because the underlying implementation of Python lists is a mystery to students that leads students to believe many operations are constant, O(1), that are not.

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

Privacy Policy