Skip to content

Instantly share code, notes, and snippets.

@adam-arold
Created January 11, 2019 23:49
Show Gist options
  • Save adam-arold/e3c6b9da0447335cc784d7f87d3ffee9 to your computer and use it in GitHub Desktop.
Save adam-arold/e3c6b9da0447335cc784d7f87d3ffee9 to your computer and use it in GitHub Desktop.
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