本文共 1116 字,大约阅读时间需要 3 分钟。
class IMessage {public: virtual void SetSenderType(string sender) = 0; virtual void SetMsgContent(string msg) = 0;};class Message :public IMessage{public: virtual void SetSenderType(string sender); virtual void SetMsgContent(string msg);};
class IContent {public: virtual void getContent() = 0;};class IMessage {public: virtual void SetSenderType(string sender) = 0; virtual void SetMsgContent(IContent content) = 0;};class Message :public IMessage{public: virtual void SetSenderType(string sender); virtual void SetMsgContent(IContent msg);};
转载地址:http://vdeqj.baihongyu.com/