Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 12 / Example_polymorphism
diff options
context:
space:
mode:
Commit2ff35217aae6465dfc0b8ff84bb4e4b5cd3f4fe5 (patch)
Author
 Angel Dimitriev <angel_dimitriev@abv.bg>
2022-06-03 17:09:28 +0300
Committer
 GitHub <noreply@github.com>
2022-06-03 17:09:28 +0300
Files78830c8315c4450f105c489de729c73bb5b720b4 /Sem. 12/Example_polymorphism
Object-oriented_programming_FMI-2ff35217aae6465dfc0b8ff84bb4e4b5cd3f4fe5.tar
Object-oriented_programming_FMI-2ff35217aae6465dfc0b8ff84bb4e4b5cd3f4fe5.tar.gz
Object-oriented_programming_FMI-2ff35217aae6465dfc0b8ff84bb4e4b5cd3f4fe5.zip
Parentcf88178f0c4ecd23595cb79675d8124811004ce9 (diff)
Update main.cpp
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
+}