+1
Відповідь надано

What is a delegate

Kent Hervey 3 місяці тому оновлено Alexander Shvets 3 місяці тому 1
I am about 27% complete in the Refactoring course and am seeing mention of delegate several times.

What is delegate?  Maybe some examples?

ДОБРЕ, Я ЗАДОВОЛЕНИЙ
Позначка задоволеності від Kent Hervey 3 місяці тому
+1
Відповідь надано

Hi Kent!

In simple terms, a delegate is an object that helps the other object to do some stuff. The original object "delegates" the work to a delegate. In various sources, the term delegate might be loaded with additional meaning (you can read more about this on wiki), but in my course, it simply means passing some work to another object.

Please let me know if you have any further questions.