Skip to main content
CS Teaching Tips

Main navigation

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

Misconception: Students believe that methods in different classes cannot have the same name.

Share Misconception: Students believe that methods in different classes cannot have the same name. with FacebookShare Misconception: Students believe that methods in different classes cannot have the same name. with Twitter
  • Explain to students that classes are independent from one another, so their methods can share the same name.

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

Misconception: students develop the habit of putting the type in front of variables; they don’t realize that this creates a new variable resulting in lots of variables with the same name.
Have students create a Burrito class in Java to practice object-oriented programming using an object they are familiar with.
Misconception: students struggle with scopes of variables and may not understand when a variable can be accessed and when it cannot be accessed.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College