Method return type to fulfill multiple interfaces

后端 未结 4 910
野性不改
野性不改 2021-02-05 08:30

Is it possible to specify a method which returns a object that implements two or multiple interfaces?

Say we have the following interfaces:

interface Foo         


        
4条回答
提交回复
热议问题