IT 117: Intermediate Scripting
Class 20

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 9

I have posted homework 9 here.

It is due this coming Sunday at 11:59 PM.


Data Hiding

Data Validation in The Constructor

Hiding Methods

The __str__ Method

Accessor and Mutator Methods

New Material

A Practical Example of A Class

Other Methods for the Student Class

Creating Student Objects

Storing Objects for Future Use

Pickling in

The Section Class

Adding Students to A Section Object

Import Statements and Global Variables