Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 12 / Example_polymorphism / main.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 15 deletions
-rw-r--r--Sem. 12/Example_polymorphism/main.cpp16
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
+}