> When you declare a class that’s a kind of item, it locks you into that structure much more tightly than if you just have member elements. It’s nice to be able to use virtual functions and that kind of thing, but the tradeoffs are just too much.
Aka, OOP is a bad design even when you take the benefits of its virtual method system.
> When you declare a class that’s a kind of item, it locks you into that structure much more tightly than if you just have member elements. It’s nice to be able to use virtual functions and that kind of thing, but the tradeoffs are just too much.
Aka, OOP is a bad design even when you take the benefits of its virtual method system.
Stick with struct and functions.