Groovy – Traits

  • Post author:
  • Post category:Groovy
  • Post comments:2 Comments

Traits are a structural construct of the language which allow − Composition of behaviors.Runtime implementation of interfaces.Compatibility with static type checking/compilation They can be seen as interfaces carrying both default…

Continue ReadingGroovy – Traits

Groovy – Generics

  • Post author:
  • Post category:Groovy
  • Post comments:1 Comment

Generics enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods. Much like the more familiar formal parameters used in method declarations, type parameters provide a…

Continue ReadingGroovy – Generics