下面public:处,如何理解,求指点~!class PlayerPrepare: public PlayerCommand{ public: PlayerPrepare(media_completion_f cbf, void* cookie) : PlayerCommand(PLAYER_PREPARE, cbf, cookie) {}};
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 00:50:12
下面public:处,如何理解,求指点~!class PlayerPrepare: public PlayerCommand{ public: PlayerPrepare(media_completion_f cbf, void* cookie) : PlayerCommand(PLAYER_PREPARE, cbf, cookie) {}};
下面public:处,如何理解,求指点~!
class PlayerPrepare: public PlayerCommand
{
public:
PlayerPrepare(media_completion_f cbf, void* cookie) :
PlayerCommand(PLAYER_PREPARE, cbf, cookie) {}
};
下面public:处,如何理解,求指点~!class PlayerPrepare: public PlayerCommand{ public: PlayerPrepare(media_completion_f cbf, void* cookie) : PlayerCommand(PLAYER_PREPARE, cbf, cookie) {}};
public://指示下面的方法的访问权限是公共的
PlayerPrepare(media_completion_f cbf,void* cookie) :
PlayerCommand(PLAYER_PREPARE,cbf,cookie) {}
冒号之前是继承类的构造函数,冒号后面是对基类构造函数的赋值.