📄 condimentdecorator.hpp
字号:
#ifndef _HFDP_CPP_DECORATOR_CONDIMENT_HPP_
#define _HFDP_CPP_DECORATOR_CONDIMENT_HPP_
#include "Starbuzz.hpp"
namespace HeadFirstDesignPatterns {
namespace Decorator {
class CondimentDecorator : public Beverage {
private: CondimentDecorator( const CondimentDecorator& ); // Disable copy constructor
private: void operator=( const CondimentDecorator& ); // Disable assignment operator
protected: CondimentDecorator() {
}
public: virtual ~CondimentDecorator() = 0 {
};
public: virtual std::string getDescription() const = 0;
};
} // namespace Observer
} // namespace HeadFirstDesignPatterns
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -