Code.org Key Learning

  • PainterPlus allows for custom actions and an advanced painter. For example, turnRight instead of three turnLeft’s.

image

  • While loops allow code to repeat until a condition is no longer met.

image

  • Methods allow a creation of custom commands or actions. For example, running and painting in a line.

image

  • Debug with prints about information.

image

Extends

Sub-class extends to Super-class.

  • Super-class
    • Painter
    • Parent-class
  • Sub-class
    • PainterPlus
    • Child-Class

Objects

  • Objects are the myPainter and myPainterPlus references that inherit from the Painter class.
  • Painter is a template class that allows the object to use and create methods which display actions.

Instantiate with: “ClassName objectName = new ClassName();” Or: “Painter myPainter = new Painter();”

image