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

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,235 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.