<<< Adding functions to classes | Index | Separating declarations and definitions >>> |
data members provide object state
member functions provide:
public interface
internal implementation procedures
// main.cpp class Point { public: // member variables int x; int y; // member functions declarations void adjust( int xx, int yy ); void draw( Canvas* cc ); };
<<< Adding functions to classes | Index | Separating declarations and definitions >>> |