⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c08p407b.txt

📁 Data Abstraction & Problem Solving with C++源码
💻 TXT
字号:
class Sphere
{
public:
// constructors and operations as before
   friend void readSphereData(Sphere& s); 
   friend void writeSphereData(Sphere& s); 
private:
   double theRadius;  // the sphere's radius
};  // end class

class Ball: public Sphere
{
public:
   Ball();
   Ball(double initialRadius, 
        const string initialName);
   void getName(string currentName) const;
   void setName(const string newName);
   void resetBall(double newRadius, 
                  const string newName);
   void displayStatistics() const;
private:
   string theName;  // the ball's name
};  // end class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -