Last active
January 19, 2016 21:31
-
-
Save chamook/7463196f606ad55f704a to your computer and use it in GitHub Desktop.
A super basic example of using interfaces and classes in F#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type ISomeInterface = | |
| abstract DoAnInterfaceyThing : string -> string | |
| type SomeClassThatImplementsAnInterface () = | |
| interface ISomeInterface with | |
| member x.DoAnInterfaceyThing msg = | |
| "Interface!" + msg | |
| member x.DoAClassThing a = a + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment