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 trialGreg Patten
243 PointsTrouble with parameter types
I'm asked what is the type of the first parameter.
void SendMessage(string message, string recipient) {
}
I've tried saying string message but that seems to be wrong. Thank you
2 Answers
andren
28,558 PointsThe type is just string. The second word message is the name of the parameter.
jason ramey
1,209 PointsI was stuck on this one too. Just remember from the video that; (string message, string recipient) have names that are (TYPE of parameter[string] NAME of parameter[message], TYPE of parameter[string] NAME of parameter[recipient]).
Hopefully that helps a little, It did for me in later lessons.