@Abstract
Specifies that a declared element does not have sufficient functionality to use it directly.
Instructions
Note: Elements with @Abstract
are also open to re-implementation almost the same as the modifier @Open
You must know
- Instantiation
- You cannot make an instance of an abstract class.
- Mixed modifiers
- You cannot put
@Abstract
together with@Shared
,@Open
, or@Override
in the same declaration. - Class extension
- When a class without
@Abstract
inherits from an abstract class, the child class must supply implementations of all abstract methods and properties that it inherited. - Declaration contexts
- You can declare abstract methods and properties only in an abstract class.
Applies to
Examples
@Abstract Class MyBaseClass
@Abstract Method MyMethod
End Method
End Class
Class MyDerivedClass Is MyBaseClass
@Override Method MyMethod
End Method
End Class