mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 12:59:00 +00:00
Commented factory method example.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
package com.iluwatar;
|
||||
|
||||
/**
|
||||
*
|
||||
* Concrete subclass for creating new objects.
|
||||
*
|
||||
*/
|
||||
public class ElfBlacksmith implements Blacksmith {
|
||||
|
||||
public Weapon manufactureWeapon(WeaponType weaponType) {
|
||||
|
||||
Reference in New Issue
Block a user