My Sites


Wednesday, May 29, 2013

What is delegation in oops concept?

Delegation allows the behavior of an object to be defined in terms of the behavior of another object.Delegation is alternative to class inheritance. Delegation is a way of making object composition as powerful as inheritance. In delegation, two objects are involved in handling a request.A receiving object delegates operations to its delegate. this is analogous to the child classes sending requests to the parent classes.

No comments:

Post a Comment