class Book {
String title;
}
def gina = new Book();
gina.title = "Groovy In Action";
println gina.title;
Groovy basically generates the getters/setters behind the scenes, but in essence these are for all intensive purposes -- properties. I felt that this needed to be addressed.
No comments:
Post a Comment