By fifthposition
via mrhaki.blogspot.com
Published: Oct 30 2009 / 04:30
In Groovy we can set values for properties with a simple assignment using the = operator. Groovy will invoke the set for us. At first sight we might think Groovy sets the variable in the class directly, but that is not true, because the set method is invoked. To get the value of a property we can use dot (.) notation instead of the get method. Let's see this in action in code.
Add your comment
Voters For This Link (18)
-
fifthposition -
aalmiray -
mswatcher -
biehl -
mahak906 -
glaforge -
shahgovi -
paulk_asert -
opensas.myopenid.com -
se7en -
Squawker -
carrion -
gubbes -
xymor -
smashingshare -
chaves -
pron -
dubness


