commit cac93309d4c0b00c6d0a7f2bcafb3e46dc12c289
parent f09dc59da9d6d2005be869258e7693f0da1201ea
Author: Samdal <samdal@protonmail.com>
Date: Sun, 23 Feb 2025 15:51:14 +0100
remove oopsie
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/_posts/2025-02-22-implications-of-OOP.md b/_posts/2025-02-22-implications-of-OOP.md
@@ -100,7 +100,6 @@ class my_class : my_base_class {
}
```
The "magic" part about OOP is that when you *override* a method with an inherited class, when you cast the object to parent class, it retains the overridden functionality.
- * [ ]
```
void print_string(my_base_class obj) {
print(obj.to_string());