O'Reilly logo

Groovy and Grails Recipes by Bashar Abdul-Jawad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 4Object-Oriented Groovy

Groovy is a fully fledged object-oriented (OO) language supporting all of the OO programming concepts that are familiar to Java developers: classes, objects, interfaces, inheritance, polymorphism, and others. Groovy is a pure OO language in which everything is an object. Don't let the fact that you can write scripts in Groovy fool you; the Groovy compiler will convert such scripts into Java classes of type groovy.lang.Script.

I don't like to label Groovy as a scripting language, because the term scripting is often associated with unwieldy, unstructured, and hard-to-read code that doesn't scale. This is absolutely not the case in Groovy. You can fully organize your code into classes and packages and at the same ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required