Hide Delegate

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Ebybymic (Talk); changed back to last version by Aidan Bebbington)
 
Line 5: Line 5:
 
One of the keys, if not the key, to objects is encapsulation. Encapsulation means that objects need to know less about other parts of the system. Then when things change, fewer objects need to be told about the change—which makes the change easier to make. Essentially, we have decoupled the Client Class from the Department class so that it will not be affected by changes to the department.
 
One of the keys, if not the key, to objects is encapsulation. Encapsulation means that objects need to know less about other parts of the system. Then when things change, fewer objects need to be told about the change—which makes the change easier to make. Essentially, we have decoupled the Client Class from the Department class so that it will not be affected by changes to the department.
  
>== See Also ==
+
== See Also ==
 
* [[Law of Demeter]]
 
* [[Law of Demeter]]
 
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ylebyfumebo.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
 
----
 
=[http://ylebyfumebo.co.cc CLICK HERE]=
 
----
 
</div>
 
  
 
== Additional Resources ==
 
== Additional Resources ==
 
[http://sourcemaking.com/refactoring/hide-delegate SourceMaking.com]
 
[http://sourcemaking.com/refactoring/hide-delegate SourceMaking.com]

Latest revision as of 03:23, 25 November 2010

A client is calling a delegate class of an object. Create methods on the server to hide the delegate.

HideDelagate.gif

One of the keys, if not the key, to objects is encapsulation. Encapsulation means that objects need to know less about other parts of the system. Then when things change, fewer objects need to be told about the change—which makes the change easier to make. Essentially, we have decoupled the Client Class from the Department class so that it will not be affected by changes to the department.

See Also

Additional Resources

SourceMaking.com

Personal tools