package strategyPattern;

public class Character {
	Weapon weapon;

	public void setWeapon(Weapon weapon) {
		this.weapon = weapon;
	}

	public void useWeapon() {
		this.weapon.action();
	}
}

package strategyPattern;

abstract class Character {
	Weapon weapon;

	public void setWeapon(Weapon weapon) {
		this.weapon = weapon;
	}

	public void useWeapon() {
		this.weapon.action();
	}
}

change the Character class to an abstract class