aboutsummaryrefslogtreecommitdiff
path: root/week10/Exercise08/User.h
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-05-08 10:07:57 +0300
committerSyndamia <kamen@syndamia.com>2024-05-08 10:07:57 +0300
commit75cff007b4896eed49b758be0959668673ae1bf3 (patch)
tree6af017d6047c78bce05af166fdbe85cae40692b5 /week10/Exercise08/User.h
parent6dd52a7c9d8db3e8b14494ae99e8b9f3b76d1262 (diff)
downloadoop-2023-solutions-75cff007b4896eed49b758be0959668673ae1bf3.tar
oop-2023-solutions-75cff007b4896eed49b758be0959668673ae1bf3.tar.gz
oop-2023-solutions-75cff007b4896eed49b758be0959668673ae1bf3.zip
[w10] Fixed mistakes in certain exercises
Diffstat (limited to 'week10/Exercise08/User.h')
-rw-r--r--week10/Exercise08/User.h8
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);
};