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

Commit fe4b14f

Browse files
factory
1 parent ca2a4e6 commit fe4b14f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

‎src/cn/ucaner/pattern/create/factory/AbsHumanFactory.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@
2222
* @version V1.0
2323
*/
2424
public abstract class AbsHumanFactory {
25+
2526
public abstract <T extends Human> T createHumen(Class<T> tClass);
27+
2628
}

‎src/cn/ucaner/pattern/create/factory/Human.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
* @version V1.0
2323
*/
2424
public interface Human {
25+
2526
void getColor();
2627
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /