Ok so the code i have is
public static void showCenter(ArrayList<TestPoly2> array){
for(int i = 0; i < array.size(); i++){
System.out.println(array.center());
}
}
I'm not sure how to go about this problem but this is what I have come up with from sitting here thinking.
.center()
is a method from the superclass
I want to be able to create multiple objects from multiple different classes and store them in the same arraylist if this is possible.
Any pointers or tips are helpful : )