4 ms·
>You'll start wondering if Weapon should inherit from the player base class. Probably not. If you want to do that, they should both implement an interface (and
by alasdair_ 8y ago
>You'll start wondering if Weapon should inherit from the player base class.
Probably not. If you want to do that, they should both implement an interface (and perhaps share some code through composition) but code inheritance is likely not the right approach here.