Hint: You can adjust the default video playback speed in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Classes in Python

Give Feedback

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 int and list.

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?

Comments & Discussion

kwf777 on Nov. 7, 2019

Great course and easy to follow and understand.

Mejato on Feb. 11, 2020

Great OOP intro!

Become a Member to join the conversation.