Introduction

Reading: Ch. 2.1

From one course to another

CS I: The essential goal was to learn to program a computer.

We recognize that a computer will blindly follow instructions and the challenge was to learn how to translate our intentions into the proper syntax. The primary measure of success was the correctness of the resulting program.


CS II: While correctness is expected, we have a new goal, to become better programmers.

So how do we define "better"?


Object-Oriented Programming

Principles:

Object-Oriented Methodology: An extension to C-style structures.

C-style "structure" : collection of data (not necessarily same type)
C++ "object" : collection of data with supporting behaviors

Note the difference between the struct's typedef and a particular instantiation of that type. The typedef is defined presumably because there may be many such instantiations, all of which share similar data types (though presumably varying actual values).

Similarly, we will differentiate between a class, which serves the role of the type definition, and an object, which is an instantiation from the class.


Highlights of Course Administration


Last modified: Thursday, 26 August 2004