-
Notifications
You must be signed in to change notification settings - Fork 55
[이재용_BackEnd] 1주차 과제 제출합니다. #46
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
base: main
Are you sure you want to change the base?
Conversation
… 그리고 docs/README.md에 변경사항 미리 안 써놓고 해서 죄송합니다 흑흑
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.
고생하셨습니다!
전체적으로 들여쓰기나 줄바꿈과 같은 코드 컨벤션을 신경써보면 좋을 것 같아요.
그리고 car 클래스 외에 경주를 위한 부분도 구현해 주세요!
| } | ||
|
|
||
| private int ran() { | ||
| return Randoms.pickNumberInRange(0, 9); |
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.
들여쓰기가 빠졌어요
| void move(){ | ||
| if(ran() >= 4){position += 1;} | ||
| } | ||
| String getname(){return name;} |
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.
개행을 통일하면 좋을 것 같습니다
| } | ||
| } | ||
|
|
||
| class car { |
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.
클래스는 '테스트', '자동차' 등 객체나 특정 단위에 따라 분리해보시길 바랍니다.
| private String name; | ||
| private int position; | ||
|
|
||
| car(String name){ |
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, private, default 등이 어떤 역할을 할까요?
힌트: 접근제어자
No description provided.