
public class Arbre {
    int x;
    int y;
    int l;
    int h;
    Fruit[] fruits;
    
    public Arbre(int x, int y, int l, int h)
    {
        this.x = x;
        this.y = y;
        this.l = l;
        this.h = h;
        fruits = new Fruit[4];
        fruits[0]=new Pomme(x+l/5,y+l/5,l/5);
        fruits[1]=new Pomme(x+l/5,y+3*l/5,l/5);
        fruits[2]=new Pomme(x+3*l/5,y+l/5,l/5);
        fruits[3]=new Pomme(x+3*l/5,y+3*l/5,l/5);
    }
}
