Website Summary Files Commits Branches @commit @diff @stats
path: root / Big4AndInheritance / Drinks / Drink.h
blob: 4a1f4601243e87e1c532c50c0882bfd2cb51fb79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>

class Drink
{
private:
	char* mark;
	int ml;
	void CopyFrom(const Drink& other);
	void Free();
public:
	Drink();
	Drink(const char* mark, int ml);
	Drink(const Drink& other);
	Drink& operator=(const Drink& other);
	~Drink();
	
	void setML(int ml);
	int getML() const;
	const char* getMark() const;
};