CS106 - Lecture 1702/19/01
Outline
Classes
Encapsulation and Information Hiding
Classes Verses Structures
Defining Classes
Defining Member Functions
Example: Display 6.3
Public Versus Private
Example: Display 6.4
Accessor Functions
Example: Display 6.5
Constructors
Example: Display 6.6
Abstract Data Types
Introduction
Classes to Produce ADTs
How to Write ADTs
Interface Verses Implementation
Email: tufo@mcs.anl.gov
Home Page: www.mcs.anl.gov/~tufo