Skip to main content
CS Teaching Tips

Main navigation

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

Have students create a Burrito class in Java to practice object-oriented programming using an object they are familiar with.

Share Have students create a Burrito class in Java to practice object-oriented programming using an object they are familiar with. with FacebookShare Have students create a Burrito class in Java to practice object-oriented programming using an object they are familiar with. with Twitter
  • Note from the CS Teaching Tips Team: Use instance variables to represent burrito ingredients.
    • Students can create methods for adding these ingredients that modify these instance variables

More about this tip

Tags

  • Java
  • Meaningful and Relevant Content
  • CS 1
  • Intro Programming
External Source
Interview with Josh Pudaloff
Other Tips By
Other Tips By Josh Pudaloff

Similar tips

Misconception: students struggle with scopes of variables and may not understand when a variable can be accessed and when it cannot be accessed.
Ask students "do you know in advance how many times you'll need to go through the loop?" when deciding between using a for or a while loop, because this is a good rule of thumb for them to use.
Show students examples of unreachable code to help them reason about how conditionals are executed.

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

Privacy Policy