Java Reference
In-Depth Information
*/
public void setPosition(String position) {
this.position = position;
}
/**
* @return the status
*/
public int getStatus() {
return status;
}
/**
* @param status the status to set
*/
public void setStatus(int status) {
this.status = status;
}
@Override
public String toString(){
return this.firstName + " " + this.lastName
+ " - "+
this.position + ": "
+ this.playerStatus();
}
}
/**
* Inner class that constructs the Player objects and
adds them to an array
* that was declared in the outer class;
*/
public TeamInner() {
final int ACTIVE = 0;
// In reality, this would probably read records
Search WWH ::




Custom Search