标签:
class Software { public: virtual ~Software(void); virtual void run() = 0; }; class FlappBird: public Software { public: FlappBird(void); ~FlappBird(void); public: virtual void run(); }; class phone { public: virtual phone(void); virtual void run(void) = 0; }; class Apple: public phone { public: Apple(void); virtual ~Apple(void); public: virtual void run(void); void addSoftware(SoftWare *soft); private: vector<Software*> softwareList_; };
标签:
原文地址:http://www.cnblogs.com/foreverstars/p/4690218.html