+1
已回答

What is a delegate

Kent Hervey 4 年 前 已更新 3 年 前 2
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 4 年 前
+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.

Is a delegate like a dependency  or opposite of a dependably or how do they relate?

UserEcho 的客户支持