阅读背景:

指定在程序运行时将创建的对象类型

来源:互联网 

I have a set of java subclasses which all extend the same superclass. They contain exactly the same methods and make the same computations on input data of different type. That means that one is responsible to deal with int, another with double, another with int Array, List etc. Objects of each type should be created at runtime of the program according to the input data each time. I have a set of java subclasses which all exten




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

分享到: