📄 ball407.h
字号:
#include "Sphere406.h"#include <string>using namespace std; 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 + -