This site requires JavaScript, please enable it in your browser!
Greenfoot back
sushma
sushma wrote ...

2017/12/17

canSee method error even when Animal class is created

sushma sushma

2017/12/17

#
void consumeFuel() { if(canSee(Fuel.class)) //here in Fuel.class it is displaying an "cannot find symbol-Fuel.class" { eat(Fuel.class); Greenfoot.playSound("fuel.wav"); } } what is the meaning of this message? kindly help
danpost danpost

2017/12/17

#
sushma wrote...
it is displaying an "cannot find symbol-Fuel.class" ... what is the meaning of this message?
It means you did not create a subclass of Actor called 'Fuel'.
sushma sushma

2017/12/18

#
thank you for the solution
You need to login to post a reply.