This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
enum PRODUCTTYPE {SFJ, XSL}; // 两种产品:舒肤佳,夏雪莲 | |
// 简单工厂模式 | |
namespace simple_factory { | |
// 抽象基类用首字母小写 | |
class soapBase{ | |
public: | |
virtual ~soapBase(){}; |
OlderNewer