HOME | Overview | Syllabus | Instructor | Lectures | Laboratories | Readings | Assignments | Resources | Other Links
CS 1713 Lecture 6: A Tale of Two Rectangles
September 13, 1999

A computer uses a class definition to find out how to construct an object in the same way that a builder uses a blueprint to find out how to build a house. A builder can build many houses from the same blueprint in the same way that a computer program can use a class definition to instantiate many objects of the same type.

In this lecture we are going to compare two blueprints for building an object that represents a rectangle.


Objective: To be able to compare alternatives for a class definition and understand the design implications.
Last revision: September 11, 1999 at 11:30 am