阅读背景:

如果我在c ++中转换(指向类A的指针)(指向其子类B的指针)会发生什么

来源:互联网 

A has a static function A::create() that creates an instance of A, does some initialization, and returns a pointer to it. I want to create a subclass of A and have a similar create() func:A has a static function A::create() that create




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: