BUT2/DEV/DEV_Madelaine/Shadock_couliior/PieceConcrete.java

20 lines
328 B
Java
Raw Permalink Normal View History

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();
}
}