April 2018
Beginner
456 pages
11h 20m
English
After reading lesson 32, you’ll be able to
At this point, you know how to create a class. Formally, a class represents an object type in Python. Why do you want to make your own object types in the first place? Because an object type packages a set of properties and a set of behaviors in one data structure. With this nicely packaged data structure, you know that all objects that take on this type are consistent in the set of data that defines them, and consistent in the set of operations that they can perform.
The useful idea behind object types is that you can build upon object types you create to make objects that are ...
Read now
Unlock full access