aboutsummaryrefslogtreecommitdiff
path: root/week11/Exercise04
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-05-10 11:33:35 +0300
committerSyndamia <kamen@syndamia.com>2024-05-10 11:33:35 +0300
commit66a5cdf79a8324019d9d34055ad212ad52504e3c (patch)
tree309d7d6acc99ef6de8cff5ad18e2533572bc348f /week11/Exercise04
parent7b19cabee8b08478f31f6e4594ed28e1d04e153c (diff)
downloadoop-2023-solutions-66a5cdf79a8324019d9d34055ad212ad52504e3c.tar
oop-2023-solutions-66a5cdf79a8324019d9d34055ad212ad52504e3c.tar.gz
oop-2023-solutions-66a5cdf79a8324019d9d34055ad212ad52504e3c.zip
[w11] Fixes for destructors
Diffstat (limited to 'week11/Exercise04')
-rw-r--r--week11/Exercise04/String.h2
1 files changed, 1 insertions, 1 deletions
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);