aboutsummaryrefslogtreecommitdiff
path: root/week13/Exercise1/String.h
blob: b2f0ee9b08cfb4177fffa85ab498a5a74901f942 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

class String {
	char *str;

	void free();
	void copyFrom(const String& other);

public:
	String();
	virtual ~String();
	String(const String& other);
	String& operator=(const String& other);
	String(String&& other);
	String& operator=(String&& other);

	String(const char* str);
};