Creating a New Object Instantiating a new object --> creating a new Painter object

//instantiates the Painter object by creating a new object
Painter myPainter = new Painter();

Using Objects Object calls the method and runs the code

//calls method of making Painter move or pick up paint
myPainter.moveSouth();

Extends Subclass extends Superclass Class is inherited from another class (ex:Taco class is inherited from Food class)

import org.code.neighborhood.Painter;

 //PainterPlus is a subclass of Painter
public class PainterPlus extends Painter {
  public PainterPlus() {
    super();  // Calls superclass
  }
  //action done by class
  public void turnRight() {
    turnLeft();
    turnLeft();
    turnLeft();
  }
  
}