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 trialRussell Strathern
1,108 PointsI disagree with the answer to a question.
In this quiz there is a question something like... This is a method... [object method:parameter]. True or false?
The quiz answers true... but I would answer false, because you are calling a method on an instance... and therefore wouldn't it be a message? (The method would be "method:")
4 Answers
Amit Bijlani
Treehouse Guest TeacherThe question says:
Following is a valid statement to call a method:
[object methodName: paramName];
I think it's fine the way it is.
Stone Preston
42,016 Pointsmethods and messages mean the practically the same thing (there are slight differences but not many). Although yes in objective C they are messages, they mean pretty much the same thing and most programming languages call them methods, and it seems on TTH they prefer to call them methods as well. In this case you are calling the method on an instance, so its an instance method. See this blog post by Ben Jakuben on methods for more information
Russell Strathern
1,108 PointsHey Stone, thanks for the link to the blog post and your description. Being a n00b, I believe that I understand what you are saying; however, wouldn't this be a better way to phrase the question for the quiz?
True or False? In the statement, [object method:parameter]; the method's name is "method:"
Point being, and I realize it is a small thing, but the original question asks the quiz-taker if an entire statement is called a method. In fact, the best answer would be that the entire line of code is a statement (in this case a method call), whereas the method itself is just called "method:".
I'm probably just over thinking this trivial detail.
Stone Preston
42,016 Pointsyeah I tend to agree with you on that. That whole line is a method call. You could contact support and request it be changed if you want.
Russell Strathern
1,108 PointsThanks Stone, I will take your advice. Take care.
Russell Strathern
1,108 PointsRussell Strathern
1,108 PointsI must have misread/remembered the question. Thank you for clarifying. Great work on this site!