circle - circle::circle(const circle & Object)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// circle.h / #ifndef _CIRCLE_H #define _CIRCLE_H # const double PI=3.14159; c class circle { public: // constructors circle(); // default constructor circle(const circle &); // copy constructor // member functions void SetRadius(double); double Area(); private: // data double radius; }; } // default constructor circle::circle() { radius = 0.0; } // copy constructor
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: circle::circle(const circle & Object) { radius = Object.radius; } // Method to set the radius of the circle void circle::SetRadius(double IncomingRadius) { radius = IncomingRadius; } // Method to find the area of the circle double circle::Area() { return(PI*radius*radius); } #endif...
View Full Document

Ask a homework question - tutors are online