Abstract type: Difference between revisions
m
→{{header|11l}}: Void
imported>Regattaguru |
Alextretyak (talk | contribs) m (→{{header|11l}}: Void) |
||
Line 18:
You can declare a virtual function to not have an implementation by using <code>F.virtual.abstract</code> keyword. A type containing at least one abstract virtual function cannot be instantiated.
<syntaxhighlight lang="11l">T AbstractQueue
F.virtual.abstract enqueue(Int item) ->
T PrintQueue(AbstractQueue)
F.virtual.assign enqueue(Int item) ->
print(item)</syntaxhighlight>
|