diff options
| author | Syndamia <kamen@syndamia.com> | 2024-05-10 16:15:49 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2024-05-10 16:15:49 +0300 |
| commit | 3e6537ee27aa23e9cb507d72c27d1d48d2c043d6 (patch) | |
| tree | a84cb0abb0f9515b86c6215b3bd8ab74f2367c67 /week12/Exercise3/Pager.cpp | |
| parent | 2d5f9c3b7cd56d5fdb5b7642b43cd5e166b5462e (diff) | |
| download | oop-2023-solutions-3e6537ee27aa23e9cb507d72c27d1d48d2c043d6.tar oop-2023-solutions-3e6537ee27aa23e9cb507d72c27d1d48d2c043d6.tar.gz oop-2023-solutions-3e6537ee27aa23e9cb507d72c27d1d48d2c043d6.zip | |
[w12] Added TelecommunicationCompany copying
Diffstat (limited to 'week12/Exercise3/Pager.cpp')
| -rw-r--r-- | week12/Exercise3/Pager.cpp | 4 |
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()) { |
