Y
Hacker News
new
|
ask
|
show
|
jobs
by
tiglionabbit
3772 days ago
Isn't delegation just a slight variation on callbacks?
1 comments
meggar
3772 days ago
Basically yeah. An object can have one delegate object, which implements a set of required and optional methods defined in a protocol. So the delegate can add customized behavior to an object without subclassing.
link