C# Inheritence HW Assignment; Single Class for multiple parents?
<p>This is for a HW assignment, so it shouldn't be very difficult. In any case, we are supposed to create a base class of a Weapon and then child classes of MeleeWeapon ,Spell, Projectile, each with additional weapon attributes. That part is not so difficult. I am getting stuck with the following:</p>

<p>"Create a class that represents a Player with a Name and a Weapon"</p>

<p>I can manage creating a player class, but I'm not sure how to account for the weapon. </p>

<p>Do I have three different player classes such as public class Player : Spell: Weapon or public class Player: MeleeWeapon : Weapon? I feel like there should be a way to have one player class, but I'm getting flustered with how to do that. The player class also needs a constructor; again this isn't too hard, but I don't know how to account for the choices in weapon type unless I have more than one player class. </p>

<p>Basically, it seems like I want to have one grand child class (Player) -> three possible child classes (MeleeWeapon, Spell, Projectile) -> one parent class (Weapon), but I'm confusing myself here.</p>