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

[lang] kotlin 시작히기 #105

Open
heowc opened this issue Mar 20, 2019 · 3 comments
Open

[lang] kotlin 시작히기 #105

heowc opened this issue Mar 20, 2019 · 3 comments
Assignees

Comments

@heowc
Copy link
Owner

heowc commented Mar 20, 2019

@heowc heowc self-assigned this Mar 20, 2019
@heowc
Copy link
Owner Author

heowc commented Mar 29, 2019

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

@heowc
Copy link
Owner Author

heowc commented Mar 31, 2019

@heowc
Copy link
Owner Author

heowc commented Apr 8, 2019

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

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

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

No branches or pull requests

1 participant