We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb7420 commit c51eb66Copy full SHA for c51eb66
abstract-factory/README.md
@@ -87,24 +87,36 @@ public interface KingdomFactory {
87
}
88
89
public class ElfKingdomFactory implements KingdomFactory {
90
+
91
+ @Override
92
public Castle createCastle() {
93
return new ElfCastle();
94
95
96
97
public King createKing() {
98
return new ElfKing();
99
100
101
102
public Army createArmy() {
103
return new ElfArmy();
104
105
106
107
public class OrcKingdomFactory implements KingdomFactory {
108
109
110
111
return new OrcCastle();
112
113
114
115
116
return new OrcKing();
117
118
119
120
121
return new OrcArmy();
122
0 commit comments