Last active
October 28, 2016 14:04
-
-
Save sliskiCode/014722d1afb11f93cb79fd05003efba0 to your computer and use it in GitHub Desktop.
Zero boilerplate delegation in Kotlin 2
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 CopyPrinter(copier: Copy, printer: Print) : Copy by copier, Print by printer | |
interface Copy { | |
fun copy(page: Page): Page | |
} | |
interface Print { | |
fun print(page: Page) | |
} | |
class Page |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment