Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 5 insertions, 0 deletions
-rw-r--r--Polymorphism/Farm(cloneFunction)/Farm.hpp5
diff --git a/Polymorphism/Farm(cloneFunction)/Farm.hpp b/Polymorphism/Farm(cloneFunction)/Farm.hpp
index 0d9e5e8..1ad3be5 100644
--- a/Polymorphism/Farm(cloneFunction)/Farm.hpp
+++ b/Polymorphism/Farm(cloneFunction)/Farm.hpp
@@ -6,19 +6,24 @@
class Farm
{
Animal** animals;
+
int len;
int count;
+
void Free();
void CopyFrom(const Farm& other);
+
bool AddAnimal(Animal* an);
public:
Farm(int len);
Farm(const Farm& other);
Farm& operator=(const Farm& other);
~Farm();
+
bool AddCat(std::string name);
bool AddDog(std::string name);
bool AddCow(std::string name);
+
void RoarAll();
};
Farm::Farm(int len)