A property that specifies the modifier Default
is called a default property. Any type that allows properties may have a default property, including interfaces. Default properties have several restrictions:
Default
, then all properties overloaded on that name must also specify Default
.The default property may be referenced without having to qualify the instance with the name of the property. Thus I(A)
is syntactically equivalent to I.P(A)
, where P
is a default property of I
that takes argument list A
. This is covered in more detail in the Expressions chapter.