mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-04 06:13:28 +00:00
fix must override a superclass method (#919)
* fix must override a superclass method * fix must override a superclass method
This commit is contained in:
1 parent
35dc25d480
commit
c653edf38f
7 files changed
+12
No files matched your search
@@ -29,6 +29,7 @@ package com.iluwatar.factory.method;
|
||||
*/
|
||||
public class ElfBlacksmith implements Blacksmith {
|
||||
|
||||
@Override
|
||||
public Weapon manufactureWeapon(WeaponType weaponType) {
|
||||
return new ElfWeapon(weaponType);
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ package com.iluwatar.factory.method;
|
||||
*/
|
||||
public class OrcBlacksmith implements Blacksmith {
|
||||
|
||||
@Override
|
||||
public Weapon manufactureWeapon(WeaponType weaponType) {
|
||||
return new OrcWeapon(weaponType);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user