Hi everyone I am having issues writing one of my classes with in a class simulation in java script. The simulation is that of out class room. Eventually a computer with catch fire and other classes will catch fire. The class that I am having trouble with is Chair and I have figured out that it needs the following
onFire : Boolean
location : integer
occupied : Boolean
getFire()
getLocation()
getOccupied()
setFire()
spreadFire()
setOccupied()
setLocation()
spreadFire()
How should I write this class out?
↧