From 7b19cabee8b08478f31f6e4594ed28e1d04e153c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 10 May 2024 10:10:21 +0300 Subject: [w11] Solved exercises --- week11/Exercise04/String.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 week11/Exercise04/String.h (limited to 'week11/Exercise04/String.h') diff --git a/week11/Exercise04/String.h b/week11/Exercise04/String.h new file mode 100644 index 0000000..13481a0 --- /dev/null +++ b/week11/Exercise04/String.h @@ -0,0 +1,18 @@ +#pragma once + +class String { + char *str; + + void free(); + void copyFrom(const String& other); + +public: + String(); + ~String(); + String(const String& other); + String& operator=(const String& other); + String(String&& other); + String& operator=(String&& other); + + virtual unsigned Length(); +}; -- cgit v1.2.3