阅读背景:

在C#中,我可以在基类中知道孩子从我这里继承了什么吗?

来源:互联网 

I have a base class vehicle and some children classes like car, motorbike etc.. inheriting from vehicle. In each children class there is a function Go(); now I want to log information on every vehicle when the function Go() fires, and on that log I want to know which kind of vehicle did it.I have a base class vehicle and some children c




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

分享到: