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/Telephone.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'week12/Exercise3/Telephone.cpp') 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 +MobileDevice* Telephone::clone() { + return new Telephone(*this); +} + void Telephone::Show() { std::cout << textMessage << std::endl; } -- cgit v1.2.3