posts - 37,comments - 7,trackbacks - 0

          Reflection combines with effective object-oriented design to allow programs to be more flexible. Delegation is useful because it allows an object to change behavior at runtime. This change in behavior happens when one delegate that provides one behavior is replaced with another delegate that provides a different behavior. The number of different delegates available defines the amount that this behavior can vary.
             Without reflective mechanisms, the number of delegates is limited to only the set of classes that are included in the system at comple time. Reflection increases this range of variation by allowing the system to use classes that are written later. There are several noteworthy aspects of this relationship:
               
             


          posted on 2005-08-17 10:41 Dave 閱讀(89) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 隆安县| 汾阳市| 鹰潭市| 舟曲县| 华阴市| 周口市| 林口县| 三门峡市| 房产| 炎陵县| 广西| 德化县| 阳春市| 察雅县| 清丰县| 习水县| 江津市| 山丹县| 维西| 清徐县| 曲阳县| 札达县| 察哈| 明星| 武功县| 古丈县| 雅安市| 象山县| 通辽市| 尖扎县| 茂名市| 娄烦县| 湘乡市| 宣武区| 申扎县| 旌德县| 来宾市| 阜康市| 霍州市| 东至县| 潜江市|