Life is a dream for the wise, a game for the fool, a comedy for the rich, a tragedy for the poor. Sholom Aleichem
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment