Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Using @Delegate in groovy, second bean
import groovy.transform.Sortable
import groovy.transform.TupleConstructor
class BeanTwo {
int yob
public int getAge() {
new Date().year - yob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment