Inheritance makes some sense, but composition is much, much easier to understand and work with. Inheritance has well documented problems that composition does not. It’s not so much about being object oriented or not, at least not directly.
I could elaborate, but others have said it better anyways.
I could elaborate, but others have said it better anyways.
https://en.m.wikipedia.org/wiki/Composition_over_inheritance