in Java syntax, Class<? extends Something>

前端 未结 5 1350
遇见更好的自我
遇见更好的自我 2020-12-12 16:57

Class

Here\'s my interpretation, it\'s class template but the class ? means the name of the class is undetermined and it exte

5条回答
  •  [愿得一人]
    2020-12-12 17:51

    You're correct.

    However usually you will want to name the class that extends Something and write e.g. . If you use ? you can't do anything with the given type later.

提交回复
热议问题