Casting a list of derived class instances as a list of their base class instances

后端 未结 0 739
[愿得一人]
[愿得一人] 2021-02-13 00:16

I\'m trying to return a list derived classes (RedThingSets and BlueThingSets) as a list of their base (ThingSets) class so that I can have a more generic function returning them

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