Post-Mortem

I am leaving this information here, after the fact. But with hindsight, I strongly suggest that you ignore this presentation, and instead look more closely at the detailed walkthrough which we began in the subsequent lectures.

CreditCard example

Reading: Ch. 1.6

To begin, we will examine the definition of a rather basic CreditCard class. The textbook gives a complete definition of the C++ source code for defining and using such a class. It is provided in three files as follows:

For the sake of comparison, we have translated this precise example to the equivalent Python program. It is presented in two parts:


Last modified: Friday, 20 January 2006