Classes and Objects

Define a Class

① Learn

A class is a blueprint for making objects. Each object created from the class is called an instance.

② Implement — write it, run it, submit
Goal

Define a class `Robot` and make `bot` an instance of it.

Output
Hints
  • Stuck? Reveal a hint.
Free Tools & Calculators