Abstract type: Difference between revisions

Content added Content deleted
No edit summary
(Added 11l)
Line 15: Line 15:


{{omit from|MiniZinc|no ability to declare new types at all}}
{{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}}==
=={{header|AArch64 Assembly}}==