programming-study
programming-study copied to clipboard
[lang] kotlin 시작히기
- Reference: https://kotlinlang.org/docs/reference/
- 최범균님이 한글로 번역해주신 1.1, 1.2 pdf: https://javacan.tistory.com/entry/kotlin-11-12-ko-reference
public class Constants {
public static final String FOO = "foo";
}
// Constants.FOO
class Constants {
companion object {
const val FOO = "foo"
}
}
// Constants.FOO
default constructor support
- https://kotlinlang.org/docs/reference/compiler-plugins.html#jpa-support
mainClass 지정시, postfix로 Kt를 붙여야함.
- ex)
HelloApplication.kt->HelloApplicationKt.class로 변환됨