Created
January 11, 2019 23:49
-
-
Save adam-arold/e3c6b9da0447335cc784d7f87d3ffee9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
interface Position { | |
val x: Int | |
val y: Int | |
} | |
// idiomatic in Kotlin | |
pos.x | |
pos.y | |
// idiomatic in Java | |
pos.getX(); | |
pos.getY(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment