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 trialRuth O'Kelly
4,944 PointsStill unclear why we use delegates.
This video didn't really explain why we would ever need to use delegates. It just gave an example of how to make one.
2 Answers
Michael Milone
1,474 PointsDelegates are useful when you want to call a method and you want the caller to handle its implementation.
Steven Parker
231,269 PointsLike many aspects of programming, you rarely need to use them. But they can be useful for solving certain kinds of problems. But more likely, you might want to use a library function that requires a delegate as an argument, so it's good to know how to construct one.
You'll probably see some examples for practical uses later on in your course.