From 9c11fababb9b6b194e646fbeb62d141aacf74c43 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 25 May 2024 16:08:17 +0300 Subject: [w13] Added solutions --- week13/Exercise3/User.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 week13/Exercise3/User.h (limited to 'week13/Exercise3/User.h') diff --git a/week13/Exercise3/User.h b/week13/Exercise3/User.h new file mode 100644 index 0000000..e742181 --- /dev/null +++ b/week13/Exercise3/User.h @@ -0,0 +1,24 @@ +#pragma once + +class User { + void free(); + void copyFrom(const User& other); + +protected: + char *name; + char *password; + bool banned; + +public: + User(); + virtual ~User(); + User(const User& other); + User& operator=(const User& other); + User(User&& other); + User& operator=(User&& other); + + bool IsBanned() const; + const char* GetUsername() const; + + friend class UserModerator; +}; -- cgit v1.2.3