BUT2/DEV/DEV_Madelaine/Shadock_couliior/Piece.java

16 lines
260 B
Java
Raw Permalink Normal View History

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