Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 12 / task1 / Drinks / EnergyDrink.h
blob: 99bbbdb77b1d5d42ec21c4e4ab8e304b9ffc9cb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// име, мл, сертификат за качество.
#pragma once
#include "Drink.h"

class EnergyDrink : public Drink
{
private:
	char* qualityCertificate;

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

public:
	EnergyDrink(const char* name, int ml, const char* certificate);
	
	EnergyDrink(const EnergyDrink& other);
	EnergyDrink& operator=(const EnergyDrink& other);
	~EnergyDrink();

	const char* getCertifiate() const;
	void setCertificate(const char* certificate);
};