摘要:
// Factory.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <iostream>using namespace std;class IProduct{public:virtual void doSomething() = 0;};class ProductA: public IProduct{public:void doSomething(){std::cout<<"Product A doSomethi 阅读全文