Lecture 8: Inheritance and Namespaces

COMP 202 Summer 2026 McGill University Note: You may have noticed that I said we would cover three topics (inheritance, scope, and pass-by-reference) at the start of the recording, but this recording only covers the first two. I was dissatisfied by the way the explanation of pass by reference turned out in the last part of the video, so I removed it. It can be a confusing topic that is best covered in person with a whiteboard, so I will delay it to the start of Wednesday's lecture. Until then, you have all the tools you need to complete the fourth assignment.