|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSpace
Railroad
public class Railroad
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 |
---|
protected int myCost
protected int myRentTimes
Constructor Detail |
---|
public Railroad()
public Railroad(java.lang.String name, int cost, int rent)
Method Detail |
---|
public int getCost()
public int getRentTimes()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |