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

Use the constraints of formatting to show students that computers have an underlying set of rules.
Introduce object states early when teaching object-oriented programming.
Tell students they have to believe that some things just work before they will understand why it works because they need exposure to a lot of material before some concepts make sense individually.

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

Privacy Policy