daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top