@Open
Specifies that a declared element can be extended or overridden.
Instructions
Notice: Elements with the modifiers @Abstract or @Override are also open to re-implementation.
You must know
- Mixed modifiers
- You cannot put
@Opentogether with@Shared,@Abstract, or@Overridein the same declaration. - Class extension
- You can extend a class only if it has one of the modifiers
@Openor@Abstract. - Declaration contexts
- You can declare open methods and properties only in an open class.
Applicable to
Examples
@Open Class MyBaseClass
@Open Method MyMethod
End Method
End Class
Class MyDerivedClass Is MyBaseClass
@Override Method MyMethod
End Method
End Class