programming-study icon indicating copy to clipboard operation
programming-study copied to clipboard

[lang] kotlin 시작히기

Open heowc opened this issue 6 years ago • 3 comments

  • Reference: https://kotlinlang.org/docs/reference/
  • 최범균님이 한글로 번역해주신 1.1, 1.2 pdf: https://javacan.tistory.com/entry/kotlin-11-12-ko-reference

heowc avatar Mar 20 '19 01:03 heowc


public class Constants {
    public static final String FOO = "foo";
}
// Constants.FOO
class Constants {
    companion object {
        const val FOO = "foo" 
    }
}
// Constants.FOO

heowc avatar Mar 29 '19 12:03 heowc

default constructor support

  • https://kotlinlang.org/docs/reference/compiler-plugins.html#jpa-support

heowc avatar Mar 31 '19 11:03 heowc

mainClass 지정시, postfix로 Kt를 붙여야함.

  • ex) HelloApplication.kt -> HelloApplicationKt.class 로 변환됨

heowc avatar Apr 08 '19 13:04 heowc