Abstract type: Difference between revisions

Content added Content deleted
(n/a for MOO)
Line 105: Line 105:
}
}
}</lang>
}</lang>

=={{header|Genyris}}==
In Genyris by default there are no constructors and classes are assigned to objects post-natal. In effect all default classes are Abstract.
<lang python>class Stack()</lang>
There is no constructor for the class. However to prevent the class ever being associated with an instance it suffices to force the validator to fail.
<lang python>class Stack()
def !valid?(object) nil</lang>



=={{header|Haskell}}==
=={{header|Haskell}}==