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
}