In this video, you’ll learn what Python classes are and how we use them.
Classes define a type. You’ve probably worked with built-in types like
Once we have our class, we can instantiate it to create a new object from that class. We say the new object has the type of the class it was instantiated from.
We can create multiple objects from the same class, and each object will be unique. They will all have the same type, but they can store different values for their individual properties.
If it helps, think of classes like blueprints that define how an object should be built. Where might we use classes and objects in real software?