V
VisionSet
How do I achieve this?
I want to call the subclasses do method with FooImpl but define it more
generically in the superclass
abstract class MyAbstract {
abstract do(<? extends Foo> foo); // ???
}
class MyImpl extends MyAbstract {
do(FooImpl foo) {}
}
FooImpl extends Foo
TIA
I want to call the subclasses do method with FooImpl but define it more
generically in the superclass
abstract class MyAbstract {
abstract do(<? extends Foo> foo); // ???
}
class MyImpl extends MyAbstract {
do(FooImpl foo) {}
}
FooImpl extends Foo
TIA