|
package jhandhero;
public class Player {
private int score;
public Player(){
this("Giocatore", 0);
}
this(pNome, 0);
}
private Player (String pName, int pScore ) {
this.name = pName;
this.score = pScore;
}
return this.name;
}
public void setName (String pName ) {
this.name = pName;
}
public int getScore() {
return this.score;
}
public void setScore(int pScore) {
this.score = pScore;
}
}
|
|