Using the factory method pattern to spawn in two difference classes of weapons. Polymorphism is used to attack with Weapon class and with the WeaponCreator class. The WeaponCreator class can either be a DwarvenWeaponCreator, a factory that produces dwarven weapons, or an ElvishWeaponCreator, a factory that produces elvish weapons.

Leave a comment

Log in with itch.io to leave a comment.