aboutsummaryrefslogtreecommitdiff
path: root/week11/Exercise07/String.h
blob: d34555a640df71d429985df1ceddff89e66c94bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#include "DynamicArray.hpp"

class String : DynamicArray<char> {
	// Не можем да имаме полиморфно += (виж DynamicArray.hpp), но пак трябва да го имплементираме
	// по някакъв начин.
	virtual DynamicArray& operator+=(const DynamicArray& other) override;

public:
	virtual char& operator[](int index) override;
	virtual const char& operator[](int index) const override;
	String& operator+=(const String& other);
};