Intro to Classes & Objects


A class is more than just a code structuring mechanism; it is a blueprint for a new user-defined type. (A "type" defines how data is formatted and a set of operations allowed on that type.)

Metaphor: Blueprints and Houses

A blueprint provides a plan, but it's just a plan.

To have something to live in, you have to implement the plan -- build a house.


Alyce Brady, Kalamazoo College