diff options
Update main.cpp
1 files changed, 1 insertions, 15 deletions
| -rw-r--r-- | Sem. 12/Example_polymorphism/main.cpp | 16 |
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 +} |
