Groovy classes
Defined class, create instance, call method
class Example {
def hello() {
println("Hello World")
}
}
e = new Example()
e.hello()
timestamp: 2019-04-09T12:00:01 tags:
- class
- new
Defined class, create instance, call method
class Example {
def hello() {
println("Hello World")
}
}
e = new Example()
e.hello()
timestamp: 2019-04-09T12:00:01 tags: