text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

Sphere403.h

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

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