如何模拟F#中的多重继承模式?

chi*_*rag 1 inheritance f#

我有一个类服务和一个接口IService.我想将这两个实现到ExampleService类.

我知道C#,在C#中我们可以使用下面的代码来做到这一点

class ExampleService : Service, IService
{
}
Run Code Online (Sandbox Code Playgroud)

我怎么能用F#.谢谢.

Pet*_*etr 5

type ExampleService() =
    inherit Service()

    interface IService with
    // Below is interface implementation
        member x.ImplementedInterfaceMember() = 
            ...
Run Code Online (Sandbox Code Playgroud)