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

Dennis Zern
Dennis Zern
813 Points

Easy! I dont understand where and what i am supposed to do here

What should i write? And why?

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




        }
    }
}
Frog.cs
namespace Treehouse.CodeChallenges
{

    class Frog{
    }
}

1 Answer

Steven Parker
Steven Parker
230,024 Points

:point_right: It looks like you've already passed task 1.

So task 2 says, "Create a Frog instance in Program.Main() and assign it to a variable named mike."

What you will do now is instantiate a Frog object. This is very similar to when an instance of a Tower object was created starting around time index 2:45 in this video: Instantiation. I'll bet your task will become clear once you have reviewed that portion of the video.

Steven Parker
Steven Parker
230,024 Points

My pleasure, and happy coding! :sparkles: