Objects and Classes

Objects and classes are a crucial part of Python. You can't properly learn Python without understanding objects and classes. In this chapter you will learn:

  • how in Python everything is an object
  • how to create your own classes and objects
  • what inheritance is

When you're just creating small scripts, chances are you don't need to create your own classes. But once you start creating larger applications, objects and classes allow you to organise your code in a natural way.

Before diving into all the details, we'll start by taking a look under the hood. I do this, because I believe it will give you a much better understanding of these concepts.

Python objects and classes header image

If you liked this page, please share it with a fellow learner: