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 trialBarry Ort
12,373 Pointswhat am i missing?
I don't know what I did wrong.
namespace Treehouse.CodeChallenges
{
class Frog
{
private int _NumFliesEaten;
}
}
1 Answer
andren
28,558 PointsThe issue is the name. The naming convention used in this course is to use an underscore along with camel casing. Camel case is where the first letter of every word is capitalized except for the first word. So the name should be _numFliesEaten.
If you change the name in the code like this:
namespace Treehouse.CodeChallenges
{
class Frog
{
private int _numFliesEaten;
}
}
Then your code will pass task 1.
Barry Ort
12,373 PointsBarry Ort
12,373 Pointsthanks!