import java.util.Random; public class PieceConcrete extends Piece { public PieceConcrete(int n){ super(n); } public PieceConcrete(){ super(0); Random r = new Random(); int n = r.nextInt(10); this.contenu = n; } public int getContenu(){ return super.getContenu(); } }