Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

Adarsh Bhardwaj
Adarsh Bhardwaj
914 Points

Why am I getting a bummer ever though I did everything right?

So I am at tast 3 of 3 in method overloading. As the task required, I made a new Method and here is the code for the same: public bool Eatfly(int distanceToFly, int flyReactionTime) { return (TongueLength >= distanceToFly && ReactionTime <= flyReactionTime); }

But I keep on getting this error"Bummer! Did you create a method named EatFly that accepts these parameter types: int, int?"

Looking forward for a solution.

1 Answer

Steven Parker
Steven Parker
231,122 Points

When you do "everything right" you get "Congratulations" instead of "Bummer" :smirk:

In this case, it looks like you wrote "Eatfly" with a lower-case "f" instead of "EatFly" with a capital "F". Remember, C# is case-sensitive.

Adarsh Bhardwaj
Adarsh Bhardwaj
914 Points

Oh I see, my bad. Thank you so much, good sir.

I love that title haha.....nice one!