Commented factory method example.

This commit is contained in:
Ilkka Seppala
2014-08-31 08:29:50 +03:00
parent 427df4e165
commit 2038d69d92
4 changed files with 23 additions and 0 deletions

View File

@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Concrete subclass for creating new objects.
*
*/
public class OrcBlacksmith implements Blacksmith {
public Weapon manufactureWeapon(WeaponType weaponType) {