“Delegates” is a feature in C++ but not Java. The idea is that you can forward a request on to another method.

Q: What are delegates?

A: When an object receives a request, the object can either handle the request itself or pass the request on to a second object to do the work. If the object decides to pass the request on, you say that the object has forwarded responsibility for handling the request to the second object.

From Javaworld

Get new posts delivered straight to your inbox.

Subscriber count: 3,505