Access child members within parent class when children are inside a vector of type parent

前端 未结 0 1537
梦如初夏
梦如初夏 2021-02-07 06:58

I have multiple child classes inside a parent class vector where each child has it\'s own type. The parent has a virtual getType function and each child overrides i

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