1. Wednesday, 10/28/2009 Notes

    In lecture today, the following topics were covered:

    • Brief discussion of labs 7 (searching sequence database) and lab 8 (maze searching)
    • The idea of classes as complex user-defined types and objects as instances/variables of that type
    • The notion that in defining classes one must define both the variables that compose the class and the operations legal on the class (these operations are both method, as well as operators such as /, *, <, =, ==)
    • That in developing classes, we will use a header file advertising the composition (variables and methods) of the class and a source file providing the implementation of the methods
    • Our example classes were: Automobiles and Rectangles

    Here is a Rectangle class header file (with more in it than we talked about in class (basically, additional methods)): Rectangle.h .  It has more in it than we talked about in class, but you should be able to see the basic sense of a declaration of what variables make up the class and what methods are available for the class.