Class constructor which allows different subtypes as arguments

后端 未结 0 1504
情歌与酒
情歌与酒 2021-01-13 04:37

I am trying to create a class which where the constructor can accept a List, the elements of which must be instances of a subclass of a specific class. Below is a minimal ex

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