C# C# Objects Methods Methods

What's wrong with my function?

//

Frog.cs
namespace Treehouse.CodeChallenges
{
    class Frog
    {
        public readonly int TongueLength;

        public Frog(int tongueLength)
        {
            TongueLength = tongueLength;
        }

        public static EatFly( int distanceToFly)
        {
            return distanceToFly < 10;
        }
    }
}

2 Answers

Steven Parker
Steven Parker
203,226 Points

Instead of a fixed number, you should compare the distance to the fly with the length of the frog's tongue.

Thanks,