Abstract type: Difference between revisions
Added 11l
No edit summary |
Alextretyak (talk | contribs) (Added 11l) |
||
Line 15:
{{omit from|MiniZinc|no ability to declare new types at all}}
=={{header|11l}}==
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.
<lang 11l>T AbstractQueue
F.virtual.abstract enqueue(Int item) -> N
T PrintQueue(AbstractQueue)
F.virtual.assign enqueue(Int item) -> N
print(item)</lang>
=={{header|AArch64 Assembly}}==
|