阅读背景:

在ArrayList中,一个子类对象是否具有子类特有的方法?

来源:互联网 

Basically what the title says, but some elaboration. I have a SuperClass with a couple of SubClasses. I needed an ArrayList to hold both types of Subclasses so hence the ArrayList of type SuperClass. I tried to access Subclass1's Basically what the title says, but some elabora




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

分享到: