10. Object-Oriented Programming

Objectives

In this chapter, you’ll:

Image Create custom classes and objects of those classes.

Image Understand the benefits of crafting valuable classes.

Image Control access to attributes.

Image Appreciate the value of object orientation.

Use Python special methods __repr__, __str__ and __format__ to get an object’s string representations. ...

Get Python for Programmers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.