Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Lecture 10 · Modular Design and Object-Oriented Programming

Week 5 · September 24, 2026

San Diego State University

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.