构造函数没有返回类型。所以不
// this is a "pseudo"-constructorpublic void TransferService(){反而
// this is the real dealpublic TransferService(){关于,
交易是抽象的,无法实例化
好吧 Transaction类是抽象类还是接口?只有拥有代码的人才能知道答案。如果是这样,那么您需要在代码中使用Transaction的具体实现。

构造函数没有返回类型。所以不
// this is a "pseudo"-constructorpublic void TransferService(){反而
// this is the real dealpublic TransferService(){关于,
交易是抽象的,无法实例化
好吧 Transaction类是抽象类还是接口?只有拥有代码的人才能知道答案。如果是这样,那么您需要在代码中使用Transaction的具体实现。