20 lines
328 B
Java
20 lines
328 B
Java
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();
|
|
}
|
|
}
|