I have an ArrayList containing objects derived from an abstract class, is there a way to return the an array list of the abstract class type then, using polymorphism, be able to reference the origin object?
The only way I can see of doing this is to create an ArrayList of the abstract class type, then copy the elements from the original ArrayList into this, but I don't want copies.