❔ How can I reuse code without inheritance?
I'm trying to learn composition over inheritance, and so far so good, but the problem is that quickly there is a lot of complex code reuse, just take a look at both of these constructors, so much things I have to keep consistent between two classes.
In case of inheritance I would just call the base class constructor, but what are my other possibilities here? The more of them, the better. Thanks.
