Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. class MyClass(val doThis: () -> Unit, val doThat: (number: Int) -> Unit = {}) {
  2.  
  3. fun someFunction(){
  4. doThis()
  5. doThat(12)
  6. }
  7. }
  8.  
  9. class UserClass {
  10. val myClass = MyClass(::doThis, ::doThat)
  11.  
  12. private fun doThis() {
  13.  
  14. }
  15.  
  16. private fun doThat(number: Int) {
  17.  
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement