diff options
Diffstat (limited to 'week10/Exercise08/User.h')
| -rw-r--r-- | week10/Exercise08/User.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/week10/Exercise08/User.h b/week10/Exercise08/User.h index dd86c76..81a5fed 100644 --- a/week10/Exercise08/User.h +++ b/week10/Exercise08/User.h @@ -1,13 +1,13 @@ #pragma once class User { + void free(); + void copyFrom(const User& other); + protected: char* name; char* password; - void free(); - void copyFrom(const User& other); - public: User(); ~User(); @@ -17,5 +17,7 @@ public: User& operator=(User&& other); const char* GetName(); + void SetName(const char* newName); const char* GetPassword(); + void SetPassword(const char* newPassword); }; |
