16 lines
260 B
Java
16 lines
260 B
Java
public abstract class Piece {
|
|
protected int contenu;
|
|
|
|
public Piece(int contenu) {
|
|
this.contenu = contenu;
|
|
}
|
|
|
|
public int getContenu() {
|
|
return contenu;
|
|
}
|
|
|
|
public String toString(){
|
|
return ""+this.contenu;
|
|
}
|
|
}
|