Website Summary Files Commits Branches @commit @diff @stats
path: root / Polymorphism / Figures
diff options
context:
space:
mode:
1 files changed, 0 insertions, 17 deletions
-rw-r--r--Polymorphism/Figures/Farm(cloneFunction)/Cat.hpp17
diff --git a/Polymorphism/Figures/Farm(cloneFunction)/Cat.hpp b/Polymorphism/Figures/Farm(cloneFunction)/Cat.hpp
deleted file mode 100644
index da76fe3..0000000
--- a/Polymorphism/Figures/Farm(cloneFunction)/Cat.hpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "Animal.hpp"
-
-class Cat : public Animal
-{
-public:
- Cat(String name) :Animal(name)
- {}
- Animal* clone()
- {
- Animal* copy = new Cat(*this);
- return copy;
- }
- void Roar()
- {
- std::cout << "meow meow" << std::endl;
- }
-}; \ No newline at end of file