IT 117: Intermediate Scripting
Class 23

Today's Topics

Tips and Examples


Review


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.

It is not due this Sunday.

Instead it is due Sunday, December 3rd, at 11:59 PM.

Quiz 7

I have posted the answers to Quiz 7 here.

Let's review the answers.

Announcement

There will be no graded quiz this week.

But there will be one the following week covering the material in the previous 3 Class Quizzes.

Tips and Examples

Test Code in a Class Definition Module

Review

Reusing Classes

Inheritance

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

Polymorphism

Mutators for the Instructional Class

Accessors for the Instructional Class

The isinstance Function

Attendance

Class Quiz