next up previous
Next: Using the object Up: Classes Previous: Interface file

Implementation file

The implementation file can be compiled and provided to a user program as a linkable object file. The implementation file must include the interface file it defines as well as interface files for any other classes it references. The structure of the interface file for our string example will require the normal c-style string include file along with "mystring.h" defined above:


#include <string.h>
#include "mystring.h"
          .
          .
          .
MEMBER FUNCTION DEFINITIONS
          .
          .
          .
NON-MEMBER FUNCTION DEFINITIONS
          .
          .
          .


Looking at the entries for the various components, we have


next up previous
Next: Using the object Up: Classes Previous: Interface file
Eric Breimer
9/13/1999