September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -0,0 +1,13 @@
|
|||
class MyClass {
|
||||
fun instanceMethod(s: String) = println(s)
|
||||
|
||||
companion object {
|
||||
fun staticMethod(s: String) = println(s)
|
||||
}
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val mc = MyClass()
|
||||
mc.instanceMethod("Hello instance world!")
|
||||
MyClass.staticMethod("Hello static world!")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue