Skip to content

Commit d94e9df

Browse files
authored
Update 2_OCP_code_refactor.md
1 parent e737b13 commit d94e9df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2_OCP_code_refactor.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
> refactor Customer class to follow the OCP
22
3-
class Player {
3+
class Customer {
44
int GetDiscount { return 10; }
55
}
6-
class GoldPlayer : Player {
6+
class GoldCustomer : Customer {
77
int GetDiscount { return 50; }
88
}
99

0 commit comments

Comments
 (0)