added factory method sample

This commit is contained in:
Ilkka Seppala
2014-08-10 10:07:38 +03:00
parent fbb9ebd46c
commit a9de898072
10 changed files with 128 additions and 0 deletions

View File

@ -0,0 +1,9 @@
package com.iluwatar;
public class OrcBlacksmith implements Blacksmith {
public Weapon manufactureWeapon(WeaponType weaponType) {
return new OrcWeapon(weaponType);
}
}