Skip to content

Instantly share code, notes, and snippets.

@teivah teivah/class.scala
Last active Oct 30, 2018

What would you like to do?
class Point(var x: Int, var y: Int) {
def move(dx: Int, dy: Int): Unit = {
x += dx
y += dy
println(s"$x $y")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.