aboutsummaryrefslogtreecommitdiff
path: root/week11/Exercise04/String.h
blob: bf7e77a0f495d3c3df8a1a1055e56310d9c76332 (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);

	virtual unsigned Length();
};