Skip to content

Instantly share code, notes, and snippets.

@kdabir
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdabir/8733757 to your computer and use it in GitHub Desktop.
Save kdabir/8733757 to your computer and use it in GitHub Desktop.
default constructor is still called when properties hashmap is snet.
class MyClass {
def x
MyClass() {
println "hello"
}
}
println new MyClass(x:10).x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment