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_; };
时间: 2024-10-10 07:53:52