Part VI. Classes and OOP

In Part VI, we study the basics of object-oriented programming (OOP), as well as the code you write to use OOP in Python—the class statement. As you’ll see, OOP is an option in Python, but a good one: no other construct in the language supports code reuse to the degree that the class statement does. Especially in larger programs, OOP’s notion of programming by customizing is a powerful paradigm to apply, and can cut development time substantially when used well.

Get Learning Python, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.