text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

Sphere.h

Go to the documentation of this file.
00001 
00018 const double PI = 3.14159;
00019 
00022 class Sphere
00023 {
00024 public:
00029    Sphere();
00030 
00035    Sphere(double initialRadius);
00036 
00041    void setRadius(double newRadius);
00042 
00047    double getRadius() const;
00048 
00053    double getDiameter() const;
00054 
00059    double getCircumference() const;
00060 
00065    double getArea() const;
00066 
00071    double getVolume() const;
00072 
00077    void displayStatistics() const;
00078 
00079 private:
00081    double theRadius;
00082 };  // end Sphere
00083 // End of header file.

Generated on Sun Aug 27 11:56:47 2006 for AWLogo by  doxygen 1.4.6