Earlier quoted context omitted.
Inheritance doesn't work well for games, that's why so many games take a component based approach like Unity, or full blown ECS.
Well, it does work well for the engine part of game engines, and graphics related code in particular as the GP says - it's just gameplay code where OO falls a bit flat.
As a graphics programmer for many years I can also say that OOP is not really a good fit design wise for modern rendering engines, it mostly just gets in the way.