Object Oriented Programming  Lecture 2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Delegation <ul><li>Delegation refers to the delegating of responsibility and can be applied to inheritance  </li></ul><ul>...
 
 
 
 
Upcoming SlideShare
Loading in …5
×

Lect2

517 views

Published on

Object oriented programming

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
517
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lect2

  1. 1. Object Oriented Programming Lecture 2
  2. 29. Delegation <ul><li>Delegation refers to the delegating of responsibility and can be applied to inheritance </li></ul><ul><li>When a derived class does not have a desired attribute, it &quot;delegates&quot; responsibility to one of its base classes </li></ul><ul><li>In delegation systems, each object has a delegate list instead of a parent list </li></ul><ul><li>delegation's primary emphasis is on message passing where an object could delegate responsibility of a message it couldn't handle to objects that potentially could (its delegates). </li></ul>

×