text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

Sphere404.h

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

Generated on Sun Aug 27 20:00:00 2006 for AWLogo by  doxygen 1.4.6