// circle.h #ifndef CIRCLE_H // be sure file only included once per compilation #define CIRCLE_H // // Define a class that can be used to get objects of type Circle. // A class defines a data structure and the member functions // that operate on the data strcuture. // The name of the class becomes a type name. class Circle // the 'public' part should be first, the user interface // the 'private' part should be last, the safe data { public: Circle(double X, double Y, double R); // a constructor void Show(); // a member function void Set(double R); // change the radius void Move(double X, double Y); // move the circle private: double Xcenter; double Ycenter; double radius; }; #endif // CIRCLE_H nothing should be added after this line