📄 clampizza.hpp
字号:
#ifndef _HFDP_CPP_SIMPLE_FACTORY_CLAM_PIZZA_HPP_
#define _HFDP_CPP_SIMPLE_FACTORY_CLAM_PIZZA_HPP_
#include "Pizzas.hpp"
namespace HeadFirstDesignPatterns {
namespace Factory {
namespace Simple {
class ClamPizza : public Pizza {
public: ClamPizza() {
_name = "Clam Pizza";
_dough = "Thin Crust";
_sauce = "White garlic Sauce";
_toppings.push_back( "Grated parmesan cheese" );
_toppings.push_back( "Clams" );
}
};
} // namespace Simple
} // namespace Factory
} // namespace HeadFirstDesignPatterns
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -