Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Button : Clickable, Focusable {
- override fun click() = println("I was clicked!")
- override fun showOff() {
- super<Clickable>.showOff()
- super<Focusable>.showOff()
- }
- }
- fun main() {
- Button().showOff()
- Button().click()
- Button().setFocus(false)
- val b = Button()
- b.showOff()
- b.click()
- b.setFocus(false)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement