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 organize your code naturally.

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.

Share this