Unit H Reading assignment
Chapter 10 Oh Oh: Objects and Classes
What are Objects?
Simple Objects
Define a Class with class
Attributes
Methods
Initialization
Inheritance
Inherit from a Parent Class
Override a Method
Add a Method
Get Help from your Parent with super
Multiple inheritance
omit
Mixins
omit
In self Defence
Attribute Access
Direct Access
Getters and Setters
See also the introduction to
Object-Oriented Programming.
(scroll down to the Public instead of Private Attributes section).
Properties for Attribute Access
Properties for Computed Values
Name Mangling for Privacy
See also
properties.
Class and Object Attributes
Method Types
Instance Methods
Class Methods
Static Methods
Duck Typing
Magic Methods
Aggrigation and Composition
When to use Objects or Something Else
Named Tuples
Dataclasses
scan
Attrs
scan
Comming Up
Things to Do
omit
Chapter 17 Data in Space: Networks - within this chapter only read:
Data Serializing - within this secton only read:
Serialize with pickle - only read this section