Java When to use wildcard <? extends interface> instead of just an interface and why?

后端 未结 0 1348
不思量自难忘°
不思量自难忘° 2020-12-21 02:05

Both functions operate on a list of objects that all implement the Shape interface, they both work like this, but I would like to know why the first function must h

相关标签:
回答
  • 消灭零回复
提交回复
热议问题