r/programming • u/BrewedDoritos • Sep 23 '26
Modern Object Pascal Introduction for Programmers | Castle Game Engine
https://castle-engine.io/modern_pascal
77
Upvotes
r/programming • u/BrewedDoritos • Sep 23 '26
View all comments
Show parent comment
-1
u/LIGHTNINGBOLT23 Sep 24 '26
It's true that dynamic dispatch and polymorphism aren't unique to OOP, but that's not the point. None of the concepts that make up OOP are unique to OOP, so OOP only becomes a really meaningful concept when you take those concepts and combine them (more the better). I wouldn't even say inheritance-based polymorphism is unique to OOP since you can do the idea in a language that is unaware of OOP as a paradigm (doing it prototype-based like JavaScript).
Inheritance is just like any other concept in programming, it can always be taken too far.