Say I defined an interface in Groovy (with properties) as follows:
public interface GroovyInterface
{
int intProperty;
boolean boolProperty;
}
Then I implement the interface:
public class GroovyImplementation implements GroovyInterface
{
}
How do I now implement properties in a particular class? @Overridedoes not work because IntelliJ complains that I cannot override the field. I read this similar question , but it only says that you can use properties in the interface, but not how.
source
share