Delegate one interface to multiple implementations

前端 未结 0 1948
情书的邮戳
情书的邮戳 2021-01-15 20:38

Could a class delegate an interface to multiple implementations with a few lines? Given this interface:

interface Foo {
  fun doA()
  fun doB()
}
相关标签:
回答
  • 消灭零回复
提交回复
热议问题