Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 14 / Farm / Animals / Cat.h
diff options
context:
space:
mode:
1 files changed, 12 insertions, 0 deletions
-rw-r--r--Sem. 14/Farm/Animals/Cat.h12
diff --git a/Sem. 14/Farm/Animals/Cat.h b/Sem. 14/Farm/Animals/Cat.h
new file mode 100644
index 0000000..57aa627
--- /dev/null
+++ b/Sem. 14/Farm/Animals/Cat.h
@@ -0,0 +1,12 @@
+#pragma once
+#include "Animal.h"
+class Cat : public Animal
+{
+public:
+ Cat()
+ {
+ myType = Animal::AnimalType::Cat;
+ }
+ void sayHello() const override;
+ Animal* clone() const override;
+}; \ No newline at end of file