When we want to store information, we have used variables like int, float, or boolean. These are fine for simple pieces of data. But what if you want to represent something more complicated in your program - like a point, a circle, a spaceship, or a robot?
The solution is to define something called a class. A class is section of code that defines a set of data and behaviors for an object. You might make hundreds of objects that all belong to the same class, just like when we use int we can make many different integers.
Each object usually shares common data, but also can have its own methods. Consider the example to the right. Dogs have traits like size, age, and color (data) and can do things like eat, sleep, and run (methods).
Let's think of some other examples:
A class named Teacher --> objects named Malafarina, Brown, or George
A class named Avenger --> objects named Iron Man, Captain America, or Thor
A class named Wizard --> objects named Gandalf, Harry Potter, or Caleb Widoghast