Created
July 20, 2016 17:02
-
-
Save minibugdev/1a496880393420b27d22f80a3bcb2299 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1st by "const" | |
@file:JvmName("Url") | |
const val URL_BASE: String = "http://github.com" | |
const val URL_USER: String = "$URL_BASE/user" | |
// 2nd by "companion" | |
class Url { | |
companion object { | |
@JvmField val URL_BASE: String = "http://github.com" | |
@JvmField val URL_USER: String = "$URL_BASE/user" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment