“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

Sponsored content