Chapter 9 ยท Part I: Basics
Classes
Book: Ch. 9, 'Classes', pp. 157โ182
Pages this chapter covers
- Creating and Using a Classp. 158
- Creating the Dog Classp. 158
- The __init__() Methodp. 159
- Making an Instance from a Classp. 159
- Working with Classes and Instancesp. 162
- The Car Classp. 162
- Setting a Default Value for an Attributep. 163
- Modifying Attribute Valuesp. 164
- Inheritancep. 167
- The __init__() Method for a Child Classp. 167
- Defining Attributes and Methods for the Child Classp. 169
- Overriding Methods from the Parent Classp. 170
- Instances as Attributesp. 170
- Modeling Real-World Objectsp. 172
- Importing Classesp. 173
- Importing a Single Classp. 174
- Storing Multiple Classes in a Modulep. 175
- Importing Multiple Classes from a Modulep. 176
- Importing an Entire Modulep. 176
- Importing All Classes from a Modulep. 177
- Importing a Module into a Modulep. 177
- Using Aliasesp. 178
- Finding Your Own Workflowp. 179
- The Python Standard Libraryp. 179
- Styling Classesp. 181
- Summaryp. 181
Notes
Notes are not written yet
The section list above is only a map of the book, with printed page numbers, so you can read the chapter and come back. Original notes for this chapter are still to come.
No exercise yet
An original, auto-checked exercise for this chapter is not in this version.
No quiz yet
A proficiency quiz for this chapter is not in this version.