Urara-Blog/node_modules/.pnpm-store/v3/files/cd/1850910e9256d7af696e1f444cb1878f860217ef0863bd78823105d29e3c928b9a8ec078f596950a85faa6c094c1b3b8635843917689e0c8b435fa4eaba532
2022-08-14 01:14:53 +08:00

13 lines
No EOL
425 B
Text

type Customer(firstName, middleInitial, lastName) =
member this.FirstName = firstName
member this.MiddleInitial = middleInitial
member this.LastName = lastName
member this.SayFullName() =
$"{this.FirstName} {this.MiddleInitial} {this.LastName}"
let customer = Customer("Emillia", "C", "Miller")
printfn $"Hello, I'm {customer.SayFullName()}!"
// From https://dotnet.microsoft.com/languages/fsharp