Created
February 12, 2022 13:43
-
-
Save arsalankhan994/4f227eb9440e43cc7e0955c09405d225 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
main() { | |
/* | |
Class bound methods and variable | |
*/ | |
val someVariable = ClassBoundMethod | |
someVariable.classBoundMethod() | |
someVariable.name | |
} | |
class ClassBoundMethod { | |
companion object { | |
val name: String = "Erselan Khan" | |
fun classBoundMethod() { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment