class manager{ public: manager(void);//建構函式 ~manager(void);//解構函式 string getUsername(); void setUsername(string newUserName); string getPassword(); void setPassword(string newPassword); private: string username;//定義使用者名稱 string password;//定義密碼};manager::manager(void){}manager::~manager(void){}string manager::getUsername(){ return username;}void manager::setUsername(string newUserName){ username = newUserName;}string manager::getPassword(){ return password;}void manager::setPassword(string newPassword){ password = newPassword;}
class manager{ public: manager(void);//建構函式 ~manager(void);//解構函式 string getUsername(); void setUsername(string newUserName); string getPassword(); void setPassword(string newPassword); private: string username;//定義使用者名稱 string password;//定義密碼};manager::manager(void){}manager::~manager(void){}string manager::getUsername(){ return username;}void manager::setUsername(string newUserName){ username = newUserName;}string manager::getPassword(){ return password;}void manager::setPassword(string newPassword){ password = newPassword;}