Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current ·  View Page History

Groovy enables one class to extend another. We can test for extended classes with the 'in' operator, just like with implemented interfaces:

Public instance fields, properties, and methods defined on an extended class are also available on the extending class:

We can use the 'private' and 'protected' modifiers to restrict the visibility of instance methods, properties, and fields:

Public static fields, properties, and methods are inherited by extending classes:

We can make static methods, properties, and fields private or protected:

TO BE CONTINUED

Labels
  • None