text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

Ball404.h

Go to the documentation of this file.
00001 
00020 class Ball : public Sphere
00021 {
00022 public:
00023 // constructors:
00024    Ball();
00025 
00028    Ball(double initialRadius,
00029         const string& initialName);
00030 
00031    // copy constructor and destructor supplied
00032    // by the compiler
00033 
00034 // additional or revised operations:
00036    void getName(string& currentName) const;
00037 
00039    void setName(const string& newName);
00040 
00043    void resetBall(double newRadius,
00044                   const string& newName);
00045 
00047    double getArea() const;  // cross-sectional area
00048 
00049    // displayStatistics omitted
00050 
00051 private:
00053    string theName;
00054 }; // end Ball

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