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

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;
    }
}

}

2 Answers

KRIS NIKOLAISEN
KRIS NIKOLAISEN
53,361 Points

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

Steven Parker
Steven Parker
181,186 Points

You're really close! You just have a typo or spelling error where you wrote "tongueLength" (with a lower-case "t") instead of "TongueLength" (with capital "T").