Link Details

Do we have to spell it out? Okay... V-O-T-E! Login and vote now.
Link 302563 thumbnail
User 452305 avatar

By fifthposition
via mrhaki.blogspot.com
Published: Nov 26 2009 / 01:05

Closures are reusable code blocks in Groovy. The code of the closure is executed against the delegate of the closure. By default the owner of the closure is the same as the delegate, but we can change this. We can define which object is the delegate for a closure, so we can change the object the closure is executed for.
  • 14
  • 0
  • 1267
  • 236

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.