C#
and Java
. You can name the self-identifier
however you want. You are not restricted to names such as this or self as in .Net languages.type Employee(id,name) as this =
let id = id
let name = name
do this.Display() // This is how we can use self(this) object
member this.Display() =
printf "%d %s" id name
let e =new Employee(100, "Ramana")