Is there a way to dynamically change an object to another type?

前端 未结 0 899
被撕碎了的回忆
被撕碎了的回忆 2021-02-03 21:19

Let\'s say I have a class A that inherits from its parent class B, and there is another class C that also inherits from class B. Is there a way to change this pointer of class A

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