/**
 * Represents a Monopoly player
 */
public class MonopolyPlayer {
  
  private String name;
  private double cashOnHand;
  private  int   numBuildings;

    /**
     * Set the cash this objetc has
     * */
  public void addCash ( double cash ) {
   cashOnHand= cashOnHand + cash;
  }
  
  /**
   * Constructor. Initializes cashOnHand to 500.00
   */
  public MonopolyPlayer() {
    cashOnHand= 500.00;
  }
  /**Constructor. Sets balance to parameter
   */
  public MonopolyPlayer( double initialCash) { 
    cashOnHand= initialCash;
  }
  
  
  public double getBalance() {
    return cashOnHand;
  }
}
