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# C# Objects Object-Oriented Programming Instantiation

Chris Murphy
Chris Murphy
4,391 Points

Can't seem to get this instantiated

I'm just confused as to why this is not working. It must be simple but I'm not seeing it...

Program.cs
namespace Treehouse.CodeChallenges
{
    class Program
    {
        static void Main()
        {            
            Frog mike = new Frog ();
        }
    }
}
Frog.cs
namespace Treehouse.CodeChallengesnamespace 
{
    class Frog
    {

    }
}

2 Answers

Steven Parker
Steven Parker
231,236 Points

Kristian is correct, you should not change the namespace line that was given. But that's not the only issue.

:point_right: The challenge apparently doesn't like the space between Frog and the parentheses ().

You might want to report this as a bug to Treehouse Support. It may even get you "a special Exterminator badge".

Kristian Gausel
Kristian Gausel
14,661 Points

This also seems to be the case actually. weird

Kristian Gausel
Kristian Gausel
14,661 Points

you misspelled the namespace in your frog class: namespace Treehouse.CodeChallengesnamespace should be namespace Treehouse.CodeChallenges