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#

is the name of the class in the following method call. StackOverflow.Controllers.CommentController.Details();

i'm can't solve that quiz question pliz help guyz

6 Answers

Steven Parker
Steven Parker
231,248 Points

The rule for naming is this: <namespace>.<class>.<method>(), and only the namespace can contain dots.

So for StackOverflow.Controllers.CommentController.Details():

  • the method is Details
  • the class is CommentController, and
  • the namespace (all the rest) is StackOverflow.Controllers.

Steven Parker :you explained this concept better than the instructor for the course. Thanks for your clarification. How did you learn as much as you have? You clearly are coming into TH with prior knowledge, but from where or what resources?

Steven Parker
Steven Parker
231,248 Points

Thanks, nekilof. I've been a developer since before there was a "web", mostly learning new technologies via the "sink or swim" method on the job.

But in this particular case, I'm pretty sure I only paraphrased information that is contained in the Treehouse courses.

Steven Parker: Whew! Sink and swim would be rough indeed! Can I ask was your position that you originally started at something that evolved into an IT position and that's how you had to learn as you went? I have a family member that used to be a photography preservation specialist for the George Eastman House and became their first IT database admin when this "newfangled computer" came along to be able to start storing their photography collection in (especially after some of their film collection exploded). So she went from being an art major to IT.

Steven Parker
Steven Parker
231,248 Points

nekilof, I started as a Firmware Developer (assembly language). Nobody used the term "IT" at the time, and even now firmware is probably considered more EE than IT. But closer related than photography.

Nicol谩s Barcel贸
Nicol谩s Barcel贸
17,048 Points

I think the class name is CommentController.

thanks Nicolas it works

thanks Steven

Steven Parker
Steven Parker
231,248 Points

Remember to choose an answer.... :)

The name of the second parameter in the following method is .

void SendMessage(string message, string recipient) {

}

what about this question guys

Parameters are separated by commas, you first need to declare the type, which is a string, so the name of the second parameter is recipient.

thnx for the help