I am trying to set up an array that hold objects that i am creating, however their parameters are of different types and i get an 'incompatable types error when i try to compile.
This is the code that i am using:

PHP Code:
          private Shape[] shape = new Shape[6];
    
int [] object= new Shape [6];
    
shape[0] = new Circle(404030Color.red);
    
shape[1] = new House(808030Color.yellow);
    
shape[2] = new Square(12012030Color.blue);
    
shape[3] = new Diamond(16016030Color.green);
    
shape[4] = new Face(20020030Color.pink);
    
shape[5] = new Face(24024030Color.black); 
Object has the following parameter types: Object(int x, int y, int s, string)

I'm new to java so its probbly a silly mistake. Can someone tell me what I'm doing wrong?