Class Railroad

java.lang.Object
  extended by Space
      extended by Railroad

public class Railroad
extends Space


Field Summary
protected  int myCost
           
protected  int myRentTimes
           
 
Fields inherited from class Space
mortgaged, myColor, myName, myOwner, mySpace, myType
 
Constructor Summary
Railroad()
           
Railroad(java.lang.String name, int cost, int rent)
           
 
Method Summary
 int getCost()
           
 int getRentTimes()
           
 
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

Railroad

public Railroad()

Railroad

public Railroad(java.lang.String name,
                int cost,
                int rent)
Method Detail

getCost

public int getCost()

getRentTimes

public int getRentTimes()