10. Object-Oriented Programming
Objectives
In this chapter, you’ll:
Create custom classes and objects of those classes.
Understand the benefits of crafting valuable classes.
Control access to attributes.
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 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.