<<<Index>>>

Separating declarations and definitions



////////////////////////////////////////////////////////
// point.h
struct Point
{
    int x; // member variables
    int y;
    void adjust( int x_, int y_ ); // member declaration
};

////////////////////////////////////////////////////////
// point.cpp
#include "point.h"
void Point::adjust( int x_, int y_ ) // member definition
{
    x += x_; // Note: access to member variables is easy
    y += y_;
}

<<<Index>>>