Class Anatomy

Class Anatomy:

A class declaration defines member functions and member state on which the member functions act. A member function definition defines a single copy of code, placed in static memory, that serves all instances of the class. Non-static member data declarations define data held in each instance of the class. The values of that data are unique to each class instance.

Str.h

Preliminaries:

First, we prime the pump with some relatively simple examples, then ...

A detailed example:

If you understand this Str Class code, you will have learned almost everything you need to know about the implementation of a single class. We will look carefully at the declaration, definition, and invocation of each of the Str class's member functions. We do that in this presentation, ppt.

A Next Day beginning note: