![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
Sphere410.hGo to the documentation of this file.00001 00024 class Sphere : public EquidistantShape 00025 { 00026 public: 00027 Sphere(); 00028 Sphere(double initialRadius); 00029 Sphere(const Sphere& aSphere); 00030 virtual ~Sphere(); 00031 00032 virtual void setRadius(double newRadius); 00033 virtual double getRadius() const; 00034 virtual double getDiameter() const; 00035 virtual double getCircumference() const; 00036 virtual double getArea() const; 00037 virtual double getVolume() const; 00038 virtual void displayStatistics() const; 00039 00040 private: 00041 double theRadius; 00042 }; // end Sphere |