Note: information on this page refers to Ceylon 1.1, not to the current release.

default annotation

The default annotation marks a member which has a default implementation, but may be refined by subtypes.

Usage

class Example() {
    shared default void method() {
    }
}

Description

Methods, attributes, and member classes may be annotated default.

Because a member that is refinable must be visible outside the scope of the type it's defined in, a default member is necessarily shared.

See also