Website Summary Files Commits Branches @commit @diff @stats
path: root / Big4AndInheritance / Drink.h
blob: 0132e16977a4a3a43457222bc8962f5b8e950d66 (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;
};