Last active
December 11, 2020 08:31
-
-
Save gahfy/af3523d256299b85befab3a6fa429233 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
class CheckBox(){ | |
var isChecked: Boolean = false | |
fun click(){ | |
isChecked = !isChecked | |
} | |
} | |
class TextView(private var text: String){ | |
fun click(){ | |
//... some code | |
} | |
fun setText(text: String){ | |
this.text = text | |
} | |
fun getText() = this.text | |
} | |
fun main(){ | |
val frenchCheckBox = CheckBox() | |
val frenchTextView = TextView("Are you french?") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment