![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
Ball394.hGo to the documentation of this file.00001 00019 class Ball : public Sphere 00020 { 00021 public: 00022 // constructors: 00023 Ball(); 00024 00027 Ball(double initialRadius, 00028 const string& initialName); 00029 00030 // copy constructor and destructor supplied 00031 // by the compiler 00032 00033 // additional or revised operations: 00035 void getName(string& currentName) const; 00036 00038 void setName(const string& newName); 00039 00042 void resetBall(double newRadius, 00043 const string& newName); 00044 00046 void displayStatistics() const; 00047 00048 private: 00050 string theName; 00051 }; // end Ball |