4 ms·
Isn't delegation just a slight variation on callbacks?
by tiglionabbit 11y ago
Isn't delegation just a slight variation on callbacks?
- meggar 11y agoBasically 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.