IT 117: Intermediate Scripting
Class 23

Today's Topics

Tips and Examples


New Material

Reading Assignment

In Chapter 12, Recursion, from our textbook, Starting Out with Python, you should read sections 12.1 - 12.3 before next Tuesday's class.

Homework 11

I have posted homework 11 here.

This is the last homework assignment.

Quiz 7

I have posted the answers to Quiz 7 here.

Let's review the answers.

Tips and Examples

Test Code in a Class Definition Module


Reusing Classes


Principles of Inheritance

An Example of Inheritance

The Video Class

The Video Constructor

Validation Methods for Video

Calculating the Collection Number

The Video Constructor

Video Accessors

The __str__ Method

Creating Superclasses

New Material

The Movie Subclass

Creating a Subclass

Creating a Constructor for a Subclass

Movie Accessor Methods

The add_actor Method

A __str__ Method for Movie

The super Function

The Instructional Class

The Instructional Constructor

The __str__ Method for Instructional

The get_name Method for


Mutators for the Instructional Class

Accessors for the Instructional Class

The isinstance Function


Graded Quiz