aboutsummaryrefslogtreecommitdiff
path: root/week10/Exercise08
diff options
context:
space:
mode:
Diffstat (limited to 'week10/Exercise08')
-rw-r--r--week10/Exercise08/Moderator.h2
-rw-r--r--week10/Exercise08/User.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/week10/Exercise08/Moderator.h b/week10/Exercise08/Moderator.h
index 70296a4..2945ae7 100644
--- a/week10/Exercise08/Moderator.h
+++ b/week10/Exercise08/Moderator.h
@@ -10,7 +10,7 @@ protected:
public:
Moderator();
- ~Moderator();
+ virtual ~Moderator();
Moderator(const Moderator& other);
Moderator& operator=(const Moderator& other);
Moderator(Moderator&& other);
diff --git a/week10/Exercise08/User.h b/week10/Exercise08/User.h
index 81a5fed..b6055a1 100644
--- a/week10/Exercise08/User.h
+++ b/week10/Exercise08/User.h
@@ -10,7 +10,7 @@ protected:
public:
User();
- ~User();
+ virtual ~User();
User(const User& other);
User& operator=(const User& other);
User(User&& other);