From 2ff35217aae6465dfc0b8ff84bb4e4b5cd3f4fe5 Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Fri, 3 Jun 2022 17:09:28 +0300 Subject: Update main.cpp --- Sem. 12/Example_polymorphism/main.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'Sem. 12/Example_polymorphism/main.cpp') diff --git a/Sem. 12/Example_polymorphism/main.cpp b/Sem. 12/Example_polymorphism/main.cpp index 5d7fc69..0c93f79 100644 --- a/Sem. 12/Example_polymorphism/main.cpp +++ b/Sem. 12/Example_polymorphism/main.cpp @@ -30,20 +30,6 @@ void freeCollection(Shape** shapes, size_t shapesCount) delete[] shapes; } -struct A -{ - virtual void f() const - { - ; - } -}; -struct B : public A -{ - void f() const final - { - - } -}; int main() { Shape** arr = new Shape*[4]; @@ -63,4 +49,4 @@ int main() freeCollection(arr, 4); -} \ No newline at end of file +} -- cgit v1.3.1-23-gd82d