Hi, I'm new to greenfoot and I'm trying to program a turtle to eat lettuce. But when I press compile it gives me the message "cannot find symbol method canSee." I don't see why it cant find the method. If someone could explain all this to me that would be nice.
public class turtle extends animal
{
/**
* Act - do whatever the turtle wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
move(4);
trytoEatLeaf();
}
public void trytoEatLeaf()
{
if (canSee (leaf.class) )
{
eat(leaf.class);
}
}}