I have a java program consisting of a class called Piece, has four children objects. Ie, Geometry, circle extends geometry, circle2 extends circle, etc.
I want to create an array of Geometry objects and access circle, or circle2 methods.
ex.
Geometry[i].method1();
However, I cannot seem to do this. Is there a best practice for making an array of objects that have the same parent, and accessing methods of its child in this manner?