Inheritance/Single: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring, marked p2js incompatible) |
(→{{header|F#}}: Corrected header as suggested on the Count examples/Full list/Tier 4 talk page) |
||
Line 647: | Line 647: | ||
}</lang> |
}</lang> |
||
=={{header|F#}}== |
=={{header|F_Sharp|F#}}== |
||
The <code>()</code> behind the class names indicates a public default constructor; you need some type of public constructor to derive from a class. |
The <code>()</code> behind the class names indicates a public default constructor; you need some type of public constructor to derive from a class. |
||
<lang fsharp>type Animal() = |
<lang fsharp>type Animal() = |