April 2018
Beginner
456 pages
11h 20m
English
In the previous units, you used various Python object types. You wrote programs that created multiple objects of different, and of the same, types. Your objects interacted with each other to exchange information and work together to achieve a certain task.
In this unit, you’ll learn how to make your own object types. An object is defined by two attributes: a set of properties and a set of behaviors. For example, an integer has one property, a whole number. An integer’s set of behaviors is all the operations you can do on an integer (add, subtract, take the absolute value, and so forth). Object types offer programmers a way to package properties and behaviors together and ...
Read now
Unlock full access