Website Summary Files Commits Branches @commit @diff @stats
path: root / Polymorphism / Farm(cloneFunction) / Source.cpp
diff options
context:
space:
mode:
1 files changed, 13 insertions, 0 deletions
-rw-r--r--Polymorphism/Farm(cloneFunction)/Source.cpp13
diff --git a/Polymorphism/Farm(cloneFunction)/Source.cpp b/Polymorphism/Farm(cloneFunction)/Source.cpp
new file mode 100644
index 0000000..d6fcfc9
--- /dev/null
+++ b/Polymorphism/Farm(cloneFunction)/Source.cpp
@@ -0,0 +1,13 @@
+#include "Farm.hpp"
+
+using namespace std;
+int main()
+{
+ Farm f(4);
+ f.AddCat("Cat1");
+ f.AddCat("Cat2");
+ f.AddCow("Cow1");
+ f.AddDog("Dog1");
+
+ f.RoarAll();
+}