Tutorial series

Object-Oriented Programming in Python 3

Object-Oriented Programming in Python 3

Introduction

Object-oriented programming (OOP) focuses on creating reusable patterns of code, in contrast to procedural programming, which focuses on explicit sequenced instructions. When working on complex programs in particular, object-oriented programming lets you reuse code and write code that is more readable, which in turn makes it more maintainable.

Tutorials in series

Tutorial

How To Construct Classes and Define Objects in Python 3

Tutorial

Understanding Class and Instance Variables in Python 3

Tutorial

Understanding Class Inheritance in Python 3

Tutorial

How To Apply Polymorphism to Classes in Python 3

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.