Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 13 / Farm / Collection / Farm.h
blob: 57b14942d5ab05c37bc01c5708a6051f8cf41232 (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
#pragma once
#include "../Animals/Animal.h"

class Farm
{
	Animal** animals;
	size_t animalsCount;
	size_t capacity;

	void free();
	void copyFrom(const Farm& other);
	void resize();

public:
	Farm();
	Farm(const Farm& other);
	Farm& operator=(const Farm& other);
	~Farm();

	void addAnimal(const Animal& animal);

	void allSayHello() const;

};