Website Summary Files Commits Branches @commit @diff @stats
path: root / Big4AndInheritance / Drinks / Drink.h
blob: c02398b8ee0d9d21204eaafe444f25628bff80dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#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;
};