Commit c51eb66 Fiordy
authored
1 parent 1eb7420 commit c51eb66 Copy full SHA for c51eb66
File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -87,24 +87,36 @@ public interface KingdomFactory {
87
87
}
88
88
89
89
public class ElfKingdomFactory implements KingdomFactory {
90
+
91
+ @Override
90
92
public Castle createCastle () {
91
93
return new ElfCastle ();
92
94
}
95
+
96
+ @Override
93
97
public King createKing () {
94
98
return new ElfKing ();
95
99
}
100
+
101
+ @Override
96
102
public Army createArmy () {
97
103
return new ElfArmy ();
98
104
}
99
105
}
100
106
101
107
public class OrcKingdomFactory implements KingdomFactory {
108
+
109
+ @Override
102
110
public Castle createCastle () {
103
111
return new OrcCastle ();
104
112
}
113
+
114
+ @Override
105
115
public King createKing () {
106
116
return new OrcKing ();
107
117
}
118
+
119
+ @Override
108
120
public Army createArmy () {
109
121
return new OrcArmy ();
110
122
}
You can’t perform that action at this time.
0 commit comments