Open the Lecture 10 Reveal slides for the
presentation. Use the arrow keys to move through the slides. The deck develops
function contracts, classes, methods, attributes, self, public and internal
names, properties, special methods, inheritance, and composition. It begins
with a Rectangle before moving to scientific examples.
Thursday lab: work on Project 3, Part 5.
Build the Star class in star.py, check its input and derived values, then
use it in analysis.ipynb. The lab is project work, with no separate lab
submission.
For a slower explanation, read Object-Oriented Programming Fundamentals.
Adapted from the instructor’s COMP 536 OOP slides.