aboutsummaryrefslogtreecommitdiff
path: root/week12/Exercise3/Telephone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'week12/Exercise3/Telephone.cpp')
-rw-r--r--week12/Exercise3/Telephone.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/week12/Exercise3/Telephone.cpp b/week12/Exercise3/Telephone.cpp
index 1250616..1037032 100644
--- a/week12/Exercise3/Telephone.cpp
+++ b/week12/Exercise3/Telephone.cpp
@@ -1,6 +1,10 @@
#include "Telephone.h"
#include <iostream>
+MobileDevice* Telephone::clone() {
+ return new Telephone(*this);
+}
+
void Telephone::Show() {
std::cout << textMessage << std::endl;
}