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 trialChristian Grosskopf
23,906 PointsNot understanding this challenge at all.
I'm ganna need some assistance on this one...
namespace Treehouse.CodeChallenges
{
class Frog
{
private int _numFliesEaten;
}
public GetNumFliesEaten()
{
return _numFliesEaten;
}
public int SetNumFliesEaten()
{
}
}
1 Answer
Simon Andersson
6,880 PointsYou're really close. Just remember to add the functions or methods inside of the Class.
namespace Treehouse.CodeChallenges
{
class Frog
{ // Frog class starts here
private int _numFliesEaten;
public int GetNumFliesEaten() {
return _numFliesEaten;
}
public void SetNumFliesEaten(int flies) {
_numFliesEaten = flies;
}
} //Frog Class ends here
}