From 66a5cdf79a8324019d9d34055ad212ad52504e3c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 10 May 2024 11:33:35 +0300 Subject: [w11] Fixes for destructors --- week11/Exercise04/String.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'week11/Exercise04') diff --git a/week11/Exercise04/String.h b/week11/Exercise04/String.h index 13481a0..bf7e77a 100644 --- a/week11/Exercise04/String.h +++ b/week11/Exercise04/String.h @@ -8,7 +8,7 @@ class String { public: String(); - ~String(); + virtual ~String(); String(const String& other); String& operator=(const String& other); String(String&& other); -- cgit v1.2.3