Skip to content

Conversation

@adocavo1129
Copy link

No description provided.

Copy link

@Choon0414 Choon0414 left a 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);

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;}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

개행을 통일하면 좋을 것 같습니다

}
}

class car {

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){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

클래스나 멤버변수, 메서드 앞에 오는 public, private, default 등이 어떤 역할을 할까요?

힌트: 접근제어자

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants