Calling a Method

alice.move();
  • ”alice” is the name of the object we want to give the instruction to
  • ”.” is the dot operator that is used to call a method in a class
  • ”move()” is the name of the method we want to call followed by an empty set of parentheses