How would this class look in f#?
public class myClass : baseClass
{
public myClass()
{
this.someVariable = "test";
this.someFunction();
}
}
So far i’ve figured out (is it even correct?):
type myClass = class
inherit baseClass
new ()=
this.someFunction()
end
but am struggling with calling someFunction() as it says ‘this’ is not defined
Here’s one way to translate your code: