From b10017c7a5a504d51f044cdd2ee833660d89ee9f Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Fri, 20 Sep 2019 14:30:07 +0300 Subject: Rename Polymorphism/Figures/Farm(cloneFunction)/Cat.hpp to Polymorphism/Farm(cloneFunction)/Cat.hpp --- Polymorphism/Figures/Farm(cloneFunction)/Cat.hpp | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 Polymorphism/Figures/Farm(cloneFunction)/Cat.hpp (limited to 'Polymorphism/Figures/Farm(cloneFunction)') 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 -- cgit v1.3.1-23-gd82d