1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* * Created by: * Created: Monday, July 02, 2007 */ namespace DesignPatterns.Strategy { public class Queen : Character { public Queen( ) : this( new BowAndArrow( ) ) {} public Queen( IWeapon weapon ) : base( weapon ) {} public override void Fight( ) { Weapon.UseWeapon( ); } } }