Skip to content

Instantly share code, notes, and snippets.

@lu911
Created August 3, 2013 04:39
Show Gist options
  • Save lu911/6145213 to your computer and use it in GitHub Desktop.
Save lu911/6145213 to your computer and use it in GitHub Desktop.
constructor
object Main {
def main(args: Array[String]): Unit = {
val p1 = new Person("Loup", 19)
}
class Person(val name: String, val age: Int)
{
println("Hello " + name + "(" + age + ")")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment