The How and Why of Object-Oriented Programming in Python

June 02, 2023 2h 46m Free

Description

Python supports multiple programming paradigms. You can write procedural programs, use functional programming features, or use the full power of object-oriented programming.

In this tutorial, you will learn how to get the most out of object-oriented programming. After this tutorial, you will be able to:

- Design your own objects
- Take advantage of inheritance for code reuse
- Implement special methods for Pythonic objects
- Convert programs from a procedural to an object-oriented approach

This tutorial is based on a small but comprehensive example. Starting from a procedural solution with lists and dictionaries, the tutorial gradually introduces how to create your own objects to solve the same problem. The next steps introduce the concepts of inheritance and special methods to take full advantage of object-oriented programming.