C# C# Objects Methods Methods

michael edmondson
michael edmondson
3,260 Points

Hey im kind of stuck here

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

michael edmondson
michael edmondson
3,260 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
PRO
KRIS NIKOLAISEN
Pro Student 50,936 Points

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

Steven Parker
Steven Parker
176,604 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").