IT 117: Intermediate Scripting
Class 22

Tips and Examples


Review


New Material


Microphone

Readings

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.

Homework 10

I have posted homework 10 here.

Quiz 8

Let's look at the answers to Quiz 8.

Questions

Are there any questions before I begin?

Tips and Examples

Common Error: Class Test Code Does Not Run

Review

Magic Methods

Magic Methods and Boolean Operators

Type Conversion Magic Methods

More Relational Magic Methods

Putting Test Code into Class Modules

Attendance

New Material

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 Updated Video Constructor

Video Accessors

The __str__ Method

Creating Superclasses

Honesty and Trust

Class Exercise

Class Quiz