Type inheritance in F#
问题 I can't find the proper syntax for coding a type D that inherits a base class B (written in C#) and his constructors other than the base class implicit constructor: C# code: public class B { private int _i; private float _f; public B() { _i = 0; _f = 0.0f; } public B(int i) { _i = 0; _f = 0.0f; } public B(int i, float f) { _i = i; _f = f; } } F# code: type D() = inherit B() //how to inherit from other constructors ? Thanks 回答1: I found a way to do it thanks this blog ! type D = class inherit