From eab36a79b85b59fbbff75bf0dd748f877e94962e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 8 May 2024 19:23:21 +0300 Subject: [w10] Added forgotten virtual keyword to certain destructors --- week10/Exercise08/Moderator.h | 2 +- week10/Exercise08/User.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'week10/Exercise08') 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); -- cgit v1.2.3