@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
@Abstracttogether with@Shared,@Open, or@Overridein the same declaration. - Class extension
- When a class without
@Abstractinherits 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.
Applicable to
Examples
@Abstract Class MyBaseClass
@Abstract Method MyMethod
End Method
End Class
Class MyDerivedClass Is MyBaseClass
@Override Method MyMethod
End Method
End Class