concept property in category groovy
appears as: properties, properties, property, property, The property, The properties

This is an excerpt from Manning's book Groovy in Action, Second Edition.
Similarly, the JavaBean conventions for properties are almost ubiquitous in Java, but the language makes no use of them. Groovy simplifies property access, allowing for far more readable code.
Listing 7.19. Declaring properties in GroovyBeans
class MyBean implements Serializable { def untyped String typed def item1, item2 def assigned = 'default value' } def bean = new MyBean() assert 'default value' == bean.getAssigned() bean.setUntyped('some value') assert 'some value' == bean.getUntyped() bean = new MyBean(typed:'another value') assert 'another value' == bean.getTyped()
This notation is much more concise, reads well, and is closer to plain English. Later, we’ll also provide the shortcut notation of 3.m in the international measures format. But how can we add properties to numbers in Groovy? We have a couple of approaches, actually. As we’ve discovered in chapter 8 on the Groovy MOP, we can modify the meta class or use a Groovy Category to add new methods and properties to any type, including number types.