Class Utility

java.lang.Object
  extended by Space
      extended by Utility

public class Utility
extends Space


Field Summary
protected  int myCost
           
protected  int[] myRentTimes
           
 
Fields inherited from class Space
mortgaged, myColor, myName, myOwner, mySpace, myType
 
Constructor Summary
Utility()
           
Utility(java.lang.String name, int cost, int[] rent)
           
 
Method Summary
 int getCost()
           
 int getRentTimes(int x)
           
 
Methods inherited from class Space
equals, getColor, getMortgaged, getName, getOwner, getType, setMortgaged, setOwner
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myCost

protected int myCost

myRentTimes

protected int[] myRentTimes
Constructor Detail

Utility

public Utility()

Utility

public Utility(java.lang.String name,
               int cost,
               int[] rent)
Method Detail

getCost

public int getCost()

getRentTimes

public int getRentTimes(int x)