10.1 Introduction

Section 1.5 introduced the basic terminology and concepts of object-oriented programming. Everything in Python is an object, so you’ve been using objects constantly throughout this book. Just as houses are built from blueprints, objects are built from classes—one of the core technologies of object-oriented programming. Building a new object from even a large class is simple—you typically write one statement.

Crafting Valuable Classes

You’ve already used lots of classes created by other people. In this chapter you’ll learn how to create your own custom classes. You’ll focus on “crafting valuable classes” that help you meet the requirements of the applications you’ll build. You’ll use object-oriented programming with its core ...

Get Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud 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.