Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 12 / task1 / Drinks / Drink.h
blob: d4d37ae873d8e2d51294f12bd3c28b4d81680625 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

class Drink
{
public:
	Drink();

	Drink(const char* name, int ml);

	Drink(const Drink& other);
	Drink& operator=(const Drink& other);
	~Drink();

	const char* getName() const;
	int getMl() const;

	void setName(const char* name);
	void setMl(int ml);

private:
	char* name;
	int ml;

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

};