From 3e6537ee27aa23e9cb507d72c27d1d48d2c043d6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 10 May 2024 16:15:49 +0300 Subject: [w12] Added TelecommunicationCompany copying --- week12/Exercise3/Pager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'week12/Exercise3/Pager.cpp') 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()) { -- cgit v1.2.3