IT 117: Intermediate Scripting
Class 22

Today's Topics


New Material

Reading Assignment

In Chapter 11, Inheritance, from our textbook, Starting Out with Python, you should read sections 11.1 and 11.2, Introduction to Inheritance and Polymorphism, before next Tuesday's class.

Homework 10

I have posted homework 10 here.


An Alphabetical List of Students

Data for An Attendance List

Magic Methods

Magic Methods and Boolean Operators

Type Conversion Magic Methods

More Relational Magic Methods

Putting Test Code into Class Modules

New Material

Reusing Classes


Principles of Inheritance

An Example of Inheritance

The Video Class

The Video Constructor

Validation Methods for Video

Calculating the Collection Number

The Updated Video Constructor

Video Accessors

The __str__ Method

Creating Superclasses