Code.org Key Learning
Code.org Key Learning.
Code.org Key Learning
- PainterPlus allows for custom actions and an advanced painter. For example, turnRight instead of three turnLeft’s.
- While loops allow code to repeat until a condition is no longer met.
- Methods allow a creation of custom commands or actions. For example, running and painting in a line.
- Debug with prints about information.
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();”