Replies: 1 comment
-
|
Kotlin은 파일 수준에서 함수를 정의할 수 있습니다. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Kotlin에는 Java의 static 키워드가 없지만, companion object를 사용하여 정적 메서드와 유사한 기능을 구현할 수 있습니다.
만약, Java 에서 정적 메서드를 사용하고 싶다면 Kotlin 에서는
@JvmStatic어노테이션을 사용하여 정적 메서드를 생성할 수 있습니다.Beta Was this translation helpful? Give feedback.
All reactions