Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc51eb66

Browse files
author
Fiordy
authored
docs: abstract-factory - readme - corrected code description as per real file (iluwatar#1887)
1 parent1eb7420 commitc51eb66

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎abstract-factory/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,24 +87,36 @@ public interface KingdomFactory {
8787
}
8888

8989
publicclassElfKingdomFactoryimplementsKingdomFactory {
90+
91+
@Override
9092
publicCastlecreateCastle() {
9193
returnnewElfCastle();
9294
}
95+
96+
@Override
9397
publicKingcreateKing() {
9498
returnnewElfKing();
9599
}
100+
101+
@Override
96102
publicArmycreateArmy() {
97103
returnnewElfArmy();
98104
}
99105
}
100106

101107
publicclassOrcKingdomFactoryimplementsKingdomFactory {
108+
109+
@Override
102110
publicCastlecreateCastle() {
103111
returnnewOrcCastle();
104112
}
113+
114+
@Override
105115
publicKingcreateKing() {
106116
returnnewOrcKing();
107117
}
118+
119+
@Override
108120
publicArmycreateArmy() {
109121
returnnewOrcArmy();
110122
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp