What is the difference between “Forwarding” and “Delegation” ?

The difference between “forwarding” and “delegation” In object-oriented programming, “forwarding” and “delegation” are often confused. They both share the point that “there are two objects, and when you call the function ‘foo’ of object A, the function ‘foo’ of object B is called inside the function” The difference is that “After the function foo of… Read more What is the difference between “Forwarding” and “Delegation” ?