Defined class, create instance, call method

examples/groovy/simple_class.groovy

class Example {
    def hello() {
        println("Hello World")
    }
}
e = new Example()
e.hello()