From c1a310e69933035fb385f52275e9b80cdad695fc Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Tue, 24 May 2022 19:38:22 +0300 Subject: Add files via upload --- Sem. 13/Farm/Farm.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Sem. 13/Farm/Farm.h (limited to 'Sem. 13/Farm/Farm.h') diff --git a/Sem. 13/Farm/Farm.h b/Sem. 13/Farm/Farm.h new file mode 100644 index 0000000..f33f244 --- /dev/null +++ b/Sem. 13/Farm/Farm.h @@ -0,0 +1,24 @@ +#pragma once +#include "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; + +}; -- cgit v1.3.1-23-gd82d