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/Exercise10/String.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'week10/Exercise10') diff --git a/week10/Exercise10/String.h b/week10/Exercise10/String.h index 4ae55c0..d63bf96 100644 --- a/week10/Exercise10/String.h +++ b/week10/Exercise10/String.h @@ -9,7 +9,7 @@ protected: public: String(); - ~String(); + virtual ~String(); String(const String& other); String& operator=(const String& other); String(String&& other); -- cgit v1.2.3