阅读背景:

如何获取创建当前对象的类?

来源:互联网 

I would like to prevent foo() from being executed by any other class than B. How can I check which class created object A?I would like to prevent foo() from being execut




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

分享到: