fix must override a superclass method (#919)

* fix must override a superclass method

* fix must override a superclass method
This commit is contained in:
dongshengchen
2019-09-08 01:52:49 +08:00
committed by Ilkka Seppälä
parent 35dc25d480
commit c653edf38f
7 changed files with 12 additions and 0 deletions

View File

@ -29,6 +29,7 @@ package com.iluwatar.factory.method;
*/
public class ElfBlacksmith implements Blacksmith {
@Override
public Weapon manufactureWeapon(WeaponType weaponType) {
return new ElfWeapon(weaponType);
}

View File

@ -29,6 +29,7 @@ package com.iluwatar.factory.method;
*/
public class OrcBlacksmith implements Blacksmith {
@Override
public Weapon manufactureWeapon(WeaponType weaponType) {
return new OrcWeapon(weaponType);
}