aboutsummaryrefslogtreecommitdiff
path: root/week12/Exercise3/Pager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'week12/Exercise3/Pager.cpp')
-rw-r--r--week12/Exercise3/Pager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/week12/Exercise3/Pager.cpp b/week12/Exercise3/Pager.cpp
index 18beb4b..acd0684 100644
--- a/week12/Exercise3/Pager.cpp
+++ b/week12/Exercise3/Pager.cpp
@@ -47,6 +47,10 @@ Pager& Pager::operator=(Pager&& other) {
return *this;
}
+MobileDevice* Pager::clone() {
+ return new Pager(*this);
+}
+
void Pager::Show() {
std::ofstream outFile(fileName);
if (!outFile.is_open()) {