We continue exploring how to build classes. Along the way, we discuss how to overload special methods.
the slides, examples, and your notes from the previous lecture (Lecture 15) so that you are ready to apply what was discussed.
And Read: 17.6 - 17.12
Slides: individual slides for viewing , 6-up layout for printing
Examples: points.py
To download the above .py files, right-click (Windows) or command-click (Macs) on the filename and then select "Save link as".
This way
you
choose where the files will be saved, instead of having your computer save to the default folder (from which you will later have to move your files for organization).
After lecture , watch this 8-minute video on operator overloading.
Link to Lecture Recording