Abstract type: Difference between revisions

Content added Content deleted
Line 358:
}</lang>
=={{header|F Sharp|F#}}==
A type with only abstract members and without constructors is an '''interface''' (when not marked with the <code>AbstractClass</code> attribteattribute). Example:
<lang fsharp>type Shape =
abstract Perimeter: unit -> float