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

Mytch Hagan
Mytch Hagan
1,876 Points

I am so confused on what I'm supposed to do.

WHAT??!!!!

Program.cs
namespace Treehouse.CodeChallenges
{
    class Program
    {
        static void Main()
        {            

        }
    }
}
Frog.cs
namespace Treehouse.CodeChallenges
{
    class Frog
    {
        public void Main();
        }
            var Frog = new mike();
        {
    }
}

2 Answers

"In Frog.cs create an empty class named Frog inside the Treehouse.CodeChallenges namespace."

Almost right. But the Frog class should be empty. Literally just class Frog{} would work.

Sean Flanagan
Sean Flanagan
33,234 Points

Hi Mytchell. Sorry this is so late but I've only just seen your thread.

All you need to do is, as Jonathan says, go to the file Frog.cs and create an empty class.

namespace Treehouse.CodeChallenges
{
    class Frog
    {

    }
}

The video about instantiation will explain.

https://teamtreehouse.com/library/instantiation

I hope this helps.