Skip to content

Commit 95f58ee

Browse files
在构造方法中,注入策略对象
1 parent a9b2392 commit 95f58ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/strategy/Price.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public class Price {
44
private MemberStrategy strategy;
55

66
/**
7+
* 在构造方法中,注入策略对象
78
*
89
* @param strategy 具体的策略对象
910
*/

0 commit comments

Comments
 (0)