Chapter 5. Object-Oriented Programming

Is it a bird? No! Is it a plane? No! It's bicycle repair man!

This chapter introduces object-oriented methodology in a very complete and straightforward way. You will be able to easily create and use objects and classes in your programs after going through the next pages of material.

Object-Oriented Programming

Python uses the traditional class architecture for object-oriented programming (OOP).

The object-oriented model adopted by Python

  • Promotes modular design

  • Promotes and facilitates Python software reusability

  • Uses notions of real-world objects to develop programs

  • Results in better quality software (but, of course, you can write bad code with any paradigm)

Object-oriented programming promotes data abstraction, ...

Get Python Developer's Handbook 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.