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
Another solution would be to define a new interface that extends Foo and Bar and to use that as return type.
I would say go for this option.