Exceptional C++

【Exceptional C++(11)】Classes之间的关

2018-01-29  本文已影响3人  downdemo

问题

class BasicProtocal {
public:
    BasicProtocal();
    virtual ~BasicProtocal();
    bool BasicMsgA(...);
    bool BasicMsgB(...);
    bool BasicMsgC(...);
};
class Protocal1 : public BasicProtocal {
public:
    Protocal1();
    ~Protocal1();
    bool DoMsg1(...);
    bool DoMsg2(...);
    bool DoMsg3(...);
    bool DoMsg4(...);
};
class Protocal2 : public BasicProtocal {
public:
    Protocal2();
    ~Protocal2();
    bool DoMsg1(...);
    bool DoMsg2(...);
    bool DoMsg3(...);
    bool DoMsg4(...);
    bool DoMsg5(...);
};

解答

上一篇下一篇

猜你喜欢

热点阅读