HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by tiglionabbit | Hacker News Reader
Parent
Full thread
tiglionabbit
·
Isn't delegation just a slight variation on callbacks?
View on HN
meggar
·
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.
Reply on news.ycombinator.com