mik*_*1aj 3 java generics
我上了课Foo<T>.我怎么能说我想T成为一个类实现BarInterface?写作根本class Foo<T implements BarInterface>不编译.
Foo<T>
T
BarInterface
class Foo<T implements BarInterface>
Kon*_*lph 11
用extends而不是implements.
extends
implements
归档时间:
15 年,1 月 前
查看次数:
1560 次
最近记录: