📄 ceilingfanoffcommand.hpp
字号:
#ifndef _HEAD_FIRST_DESIGN_PATTERNS_COMMAND_SIMPLE_REMOTE_CEILING_FAN_OFF_COMMAND_HPP_
#define _HEAD_FIRST_DESIGN_PATTERNS_COMMAND_SIMPLE_REMOTE_CEILING_FAN_OFF_COMMAND_HPP_
#include "Remote.hpp"
namespace HeadFirstDesignPatterns {
namespace Command {
namespace Remote {class CeilingFanOffCommand : public Command { private: CeilingFan* ceilingFan; public: CeilingFanOffCommand(CeilingFan* ceilingFan) { this->ceilingFan = ceilingFan; } public: virtual void execute() { ceilingFan->off(); }};} // namespace Remote
} // namespace Command
} // namespace HeadFirstDesignPatterns#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -