© Paul Gerrard 2016
Paul GerrardLean Python10.1007/978-1-4842-2385-7_6

6. Object Orientation

Paul Gerrard
Maidenhead, Berkshire, UK

What Is Object Orientation1 ?

The professional approach to programming has shifted away from designing systems with a hierarchy of features defined in functions toward an object-oriented (OO) approach. We look here at how Python fully supports object orientation.
In this book, we can only give a flavor of how objects are used. We work through an example and introduce some of the most basic concepts. We use some OO concepts in our explanation so you need a basic understanding of OO to work through this section.
In OO design, systems are composed of collaborating sets of well-defined objects. Rather than one piece of ...

Get Lean Python: Learn Just Enough Python to Build Useful Tools now with O’Reilly online learning.

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