Skip to content
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

셋팅완료 #2407

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open

셋팅완료 #2407

wants to merge 31 commits into from

Conversation

hjlim456
Copy link

No description provided.

@hjlim456
Copy link
Author

dfsgd

Car의 위치 정보인 position 필드의 상태가 변경될수 있어야 하기때문에
record 클래스를 일반 클래스로 수정하였습니다.
moveForward() 메서드를 추가했습니다
toString()은 객체가 가진 주요정보를 반환하게 만드는것이좋다.
(디버깅, 에러메세지 출력에 유용하도록)
타입을 정의하는데 인터페이스를 사용하여 public static을 정의하는건 용도에 맞지 않다고 생각했습니다.
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.

1 participant