Homework #6
Instructions
In C#
• Create a class that represents a Weapon for acomputer game. The Weapon class has the following Properties: Name,Range, and Damage. The Range and Damage cannot have a negativevalue. The Weapon class has the following derived classes: Spell,MeleeWeapon, and Projectile. The Spell class has a property thatindicates the number of skill points required to cast the spell.For example: a stun spell needs 2 skill points to be cast. TheMeleeWeapon’s range property must be 1. No other value is allowedfor it. An example of a MeleeWeapon is a Mace. The Projectiveweapon has an ammo type
PayPal Gateway not configured
PayPal Gateway not configured