0

I am new to Groovy and trying to create dynamic classes with methods with parameters. I went through the following thread and it helped me to get started: Create a Groovy class dynamically .

But it didn't show how to create add methods with parameters to the dynamic class. Basically, I am looking for the code to generate classes in runtime with a method that has parameters like below

String id
setId(String newId) {
    id = newId
}
Vy Do
  • 46,709
  • 59
  • 215
  • 313
Ronin
  • 1
  • 1

0 Answers0