C# C# Objects Methods Methods

michael edmondson
michael edmondson
3,369 Points

Hey im kind of stuck here

im stuck on whats going on with my code at this point

Can you post your code?

michael edmondson
michael edmondson
3,369 Points

heres my code

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

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

    public bool EatFly(int distanceToFly)
    {

        bool tongueReach = tongueLength >= distanceToFly;
        return tongueReach;
    }
}

}

1 Answer

In your EatFly method the TongueLength property should begin with a capital T.