-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yujeongkwon #7
base: main
Are you sure you want to change the base?
Yujeongkwon #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
최고네요
@@ -0,0 +1,27 @@ | |||
## 입/출력 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
꼼꼼하시네요!
public class Cash implements Payment{ | ||
private int cashInput = 0; | ||
|
||
public void injectionCash(int inputOption) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
메서드 명은 동사로 하면 좋을 것 같아요!
import java.util.Arrays; | ||
|
||
public class Cash implements Payment{ | ||
private int cashInput = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI와 도메인이 커플링이 커보이는데 괜찮을까요?!
public static int readBeverageOption(Scanner scanner) { | ||
System.out.print("사용자 입력 >"); | ||
return scanner.nextInt(); | ||
} | ||
|
||
public static int readBeverageNumber(Scanner scanner) { | ||
System.out.print("사용자 입력 >"); | ||
return scanner.nextInt(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
분리했을 때 장단점이 어떻게 될까요?
No description provided.