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