Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
215,940 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,649 Points

This also seems to be the case actually. weird

Kristian Gausel
Kristian Gausel
14,649 Points

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