forked from mastifikator/FantasyJavaPatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNightElf.java
More file actions
21 lines (17 loc) · 457 Bytes
/
NightElf.java
File metadata and controls
21 lines (17 loc) · 457 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package FactoryMethod;
public class NightElf extends Unit {
public NightElf(){
}
@Override
public void deadUnit() {
System.out.println("Ночной эльф погибает");
}
@Override
public void moveUnit() {
System.out.println("Ночной эльф двигается");
}
@Override
public void fightUnit() {
System.out.println("Ночной эльф сражается");
}
}