text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

Sphere393.h

Go to the documentation of this file.
00001 
00020 class Sphere
00021 {
00022 public:
00023 // constructors:
00024    Sphere();
00025    Sphere(double initialRadius);
00026    // copy constructor and destructor supplied
00027    // by the compiler
00028 
00029 // Sphere operations:
00030    void setRadius(double newRadius);
00031    double getRadius() const;
00032    double getDiameter() const;
00033    double getCircumference() const;
00034    double getArea() const;
00035    double getVolume() const;
00036    void displayStatistics() const;
00037 
00038 private:
00039    double theRadius;  // the sphere's radius
00040 }; // end Sphere

Generated on Sun Aug 27 19:59:45 2006 for AWLogo by  doxygen 1.4.6