Would someone please explain the difference between forwarding and delegation? They seem similar, but I haven\'t been able to find a good definition of forwarding, so I\'m not s
Let's first define two terms:
the object that sends a message/task to another object(the receiver)
the object that receives a message/task from the sender
The difference between forwarding and delegation is that in forwarding the receiver acts in its own context
whereas in delegation the receiver acts on the behalf of the sender
.
Here is a great metaphor from this blog post:
Delegation and forwarding are both very similar. One metaphor that might help distinguish them is to think of receiving an email asking you to donate some money to a worthy charity.