锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品亚洲永久免费精品,久久精品国产亚洲av高清漫画,亚洲va中文字幕无码久久http://www.tkk7.com/yglwxl/category/31645.htmlzh-cnSun, 13 Feb 2011 21:19:57 GMTSun, 13 Feb 2011 21:19:57 GMT60Observer妯″紡鍦↗2EE涓殑瀹炵幇 [http://35java.com/zhibo/forum.php?mod=viewthread&tid=108&extra=page%3D3]http://www.tkk7.com/yglwxl/archive/2011/02/13/344203.html涔?jié)瀹?/dc:creator>涔?jié)瀹?/author>Sun, 13 Feb 2011 11:24:00 GMThttp://www.tkk7.com/yglwxl/archive/2011/02/13/344203.htmlhttp://www.tkk7.com/yglwxl/comments/344203.htmlhttp://www.tkk7.com/yglwxl/archive/2011/02/13/344203.html#Feedback0http://www.tkk7.com/yglwxl/comments/commentRss/344203.htmlhttp://www.tkk7.com/yglwxl/services/trackbacks/344203.html寮曡█錛?/span>
            璁捐妯″紡鏄粡楠岀殑鏂囨。鍖栥傚畠鏄琚敤鏉ュ湪鐗瑰畾鍦烘櫙涓嬭В鍐充竴鑸璁¢棶棰樼殑綾誨拰鐩鎬簰閫氫俊鐨勫璞$殑鎻忚堪銆傛洿閫氫織鐨勬潵璇達紝瀹冩槸涓涓棶棰?瑙e喅鏂規(guī)瀵廣備竴鏃︽垜浠帉鎻′簡璁捐妯″紡錛屽氨絳変簬鎷ユ湁浜嗕竴鏀己鏈夊姏鐨勪笓瀹墮槦浼嶃傚畠鐢氳嚦鑳藉浣塊潰鍚戝璞$殑鏂版墜鍒╃敤鍓嶄漢鐨勭粡楠屾壘鍑鴻亴璐f槑紜殑綾誨拰瀵硅薄錛屼粠鑰岃幏寰椾紭闆呯殑瑙e喅鏂規(guī)銆傜敱浜庤璁℃ā寮忎篃鏄噸鏋勭殑鐩爣錛屽鏋滃湪璁捐鐨勫垵鏈熼傚綋鍦板紩鍏ヨ璁℃ā寮忥紝鍙互鍑忓皯閲嶆瀯鐨勫伐浣滈噺銆?/span>
      浣嗘槸錛屾垜浠篃涓嶈兘闄峰叆妯″紡鐨勯櫡闃憋紝涓轟簡浣跨敤妯″紡鑰屽幓濂楁ā寮忥紝閭f牱浼氶櫡鍏ュ艦寮忎富涔夈傛垜浠湪浣跨敤妯″紡鐨勬椂鍊欙紝涓瀹氳娉ㄦ剰妯″紡鐨勬剰鍥撅紙intent錛夛紝鑰屼笉瑕佽繃澶氱殑鍘誨叧娉ㄦā寮忕殑瀹炵幇緇嗚妭錛屽洜涓鴻繖浜涘疄鐜扮粏鑺傚湪鐗瑰畾鎯呭喌涓嬶紝鍙兘浼氬彂鐢熶竴浜涙敼鍙樸備笉瑕侀〗鍥哄湴璁や負璁捐妯″紡涓涔︿腑鐨勭被鍥炬垨瀹炵幇浠g爜灝變唬琛ㄤ簡妯″紡鏈韓銆?/span>
      涓嬮潰錛屾垜浠潵璁ㄨ涓涓嬩負浠涔堣鍦ㄥ垎甯冨紡銆佸灞傜郴緇熶腑浣跨敤Observer妯″紡銆?/span>
      

澶氬眰浣撶郴緇撴瀯錛坢ulti-tier architecture錛夛細
            涓夊眰浣撶郴緇撴瀯鏄灞備綋緋葷粨鏋勪腑鏈綆鍗曠殑涓縐嶏紝瀹冧竴鑸寘鎷細
      
  • 琛ㄧず灞?presentation)錛嶇獥鍙c佹姤琛?
  • 涓氬姟閫昏緫灞?business logic)錛嶇鐞嗕笟鍔¤繃紼嬬殑浠誨姟鍜岃鍒欍傚畠鍙堝彲浠ョ粏鍒嗕負棰嗗煙瀵硅薄灞傦紙浠h〃棰嗗煙姒傚康錛夊拰鏈嶅姟灞傦紙鎻愪緵鏁版嵁搴撲氦浜掋佸畨鍏ㄦс佹墦鍗版姤琛級銆?/li>
  • 瀛樺偍灞?storage)錛嶆寔涔呭寲瀛樺偍鏈哄埗銆傚鏁版嵁搴撴湇鍔″櫒絳夈?br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
              
鍥句竴錛氫笁灞備綋緋葷粨鏋?/strong>
              
      鑰孞ava 2騫沖彴浼佷笟鐗堬紙J2EE錛夋槸涓縐嶅埄鐢↗ava 2騫沖彴鏉ョ畝鍖栬澶氫笌澶氱駭浼佷笟瑙e喅鏂規(guī)鐨勫紑鍙戙侀儴緗插拰綆$悊鐩稿叧鐨勫鏉傞棶棰樼殑浣撶郴緇撴瀯銆傚畠鏄紑鏀劇殑銆佸熀浜庢爣鍑嗙殑騫沖彴錛岀敤浠ュ紑鍙戙侀儴緗插拰綆$悊N灞傜粨鏋勩侀潰鍚慦eb鐨勶紝浠ユ湇鍔″櫒涓轟腑蹇冪殑浼佷笟綰у簲鐢ㄣ?/span>
      涓轟簡鏀寔棰嗗煙瀵硅薄鐨勫鐢紝騫朵笖浣塊鍩熷璞$殑鎺ュ彛鍙樻洿鎵甯︽潵鐨勫獎鍝嶆渶灝忓寲銆傛垜浠皢棰嗗煙灞傦紙妯″瀷錛夊拰琛ㄧず灞傦紙瑙嗗浘錛夌浉鍒嗙銆?/span>
      閲囩敤妯″瀷錛嶈鍥炬ā寮忕殑鎰忎箟鍦ㄤ簬錛?/span>
      
  • 鏀寔鑱氬悎搴︽洿楂樼殑妯″瀷瀹氫箟錛屼嬌妯″瀷鐨勫畾涔夊彲浠ラ泦涓湪棰嗗煙榪囩▼鐨勫畾涔夛紝鑰屼笉鏄浘褰㈢晫闈笂銆?/li>
  • 鍏佽灝嗘ā鍨嬪拰鐢ㄦ埛鐣岄潰騫惰寮鍙戙?/li>
  • 浣跨敤鎴風晫闈㈢殑闇姹傚彉鍖栧棰嗗煙灞傛墍閫犳垚鐨勫獎鍝嶆渶灝忓寲銆?/li>
  • 鍏佽寤虹珛涓庝竴涓幇鏈夌殑棰嗗煙灞傚璞$浉榪炴帴鐨勬柊瑙嗗浘錛屽悓鏃朵笉褰卞搷棰嗗煙灞傘?/li>
  • 鍏佽涓涓ā鍨嬪悓鏃舵湁澶氫釜瑙嗗浘錛屼緥濡備嬌鐢⊿VG鍜岃〃鏍箋?/li>
  • 鍏佽妯″瀷灞傜嫭绔嬩簬鐢ㄦ埛鐣岄潰灞傛墽琛屻?br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; " />
      鑰岃繖鎭版伆涓嶰bserver妯″紡鐨勬剰鍥劇浉鍚誨悎銆傚洜姝ゆ垜浠湁蹇呰璺ㄥ眰鏉ュ疄鐜癘bserver妯″紡銆?/span>
      鍏跺疄錛屽湪搴旂敤涓洿澶氱殑鏄噰鐢∕VC妗嗘灦鏉ユ灦鏋勬暣涓紒涓氬簲鐢ㄧ殑銆傚湪MVC妗嗘灦涓紝Model鍜孷iew涔嬮棿瀛樺湪鐫渚濊禆鍏崇郴錛屾槸Observer妯″紡鐨勫吀鍨嬪簲鐢ㄣ傚綋鐒禡VC妗嗘灦榪樺寘鎷叾瀹冩ā寮忓Composite妯″紡鍜孲trategy妯″紡銆傚湪J2EE騫沖彴涓紝鎴戜滑鍙互鎶奧eb Tier錛堝寘鎷琂sp鍜宻ervelet鍜孞avaBean錛夌湅浣滄槸琛ㄧず灞傦紝EJB Tier鐪嬩綔鏄鍩熷眰銆傝宑ontroller鍙兘璺ㄨ窛Web Tier鍜?EJB Tier銆?/span>
      鍦↗ava綾誨簱涓噰鐢↗ava.util.Observable綾誨拰Java.util.Observer鎺ュ彛鏉ュ疄鐜癘bserver妯″紡錛屽畠浠湪鍗曚釜鐨凧ava VM.涓繍琛岀殑寰堝ソ錛屼絾濡傛灉鎯沖湪EJB涓嬌鐢ㄥ畠浠氨浼氭湁涓浜涢棶棰樸傝繖姝e鎴戜滑寮曡█涓彁鍒扮殑錛屾ā寮忕殑鍏蜂綋瀹炵幇鍦ㄧ壒瀹氭儏鍐典笅錛屽彲鑳戒細鍙戠敓涓浜涙敼鍙樸?/span>
      

鍊間紶閫掕繕鏄繙紼嬪紩鐢ㄤ紶閫掞紵
                    鍊間紶閫掞細        
鍦↗ava RMI涓姹傛墍鏈夌殑鍙傛暟鍜岃繑鍥炵被鍨嬫槸JAVA鐨勫熀鏈被鍨嬫垨瀹炵幇Java.io.Serilizable鐨勫璞°備覆琛屽寲瀵硅薄閫氳繃鍊間紶閫掞紙鍙堝悕鎷瘋礉浼犻掞級錛岃屼笉鏄紩鐢ㄤ紶閫掞紝榪欐剰鍛崇潃鍦ㄦ煇涓灞備腑涓茶鍖栧璞$殑鏇村茍涓嶈嚜鍔ㄥ獎鍝嶅埌鍏跺畠鐨勫璞°?nbsp;     
              榪滅▼寮曠敤浼犻掞細        
瀵逛簬EJB瀵硅薄鑰岃█錛屽畠鐢變袱涓帴鍙o紙home鎺ュ彛鍜宺emote鎺ュ彛錛夊拰涓涓被緇勬垚銆傚鍣ㄤ細鏍規(guī)嵁ejb瑙勮寖鏉ョ敓鎴愬疄鐜頒笂闈袱涓帴鍙g殑綾伙紙鎴戜滑鍒嗗埆縐頒負xxxEJBHome瀵硅薄鍜寈xxEjbObject瀵硅薄錛夈傚湪杈冨鐨勫鍣ㄧ殑瀹炵幇鏂規(guī)涓紝xxxEJBHome瀵硅薄浣跨敤浜唂actory妯″紡鏉ュ垱寤簒xxEjbObject瀵硅薄錛泋xxEjbObject瀵硅薄鍒欓噰鐢╬roxy妯″紡錛屼綔涓簒xxBean鐨勪唬鐞嗙被銆傚湪鐢熸垚浠ヤ笂涓や釜瀵硅薄鐨勫悓鏃訛紝瀹瑰櫒浼氫粠閮ㄧ講鏂囦歡涓鍙栧叧浜庡畨鍏ㄣ佷簨鍔°佹寔涔呮х瓑鏈嶅姟騫跺湪xxxEjbObject瀵硅薄鍜寈xxEJBHome瀵硅薄涓坊鍔犱互涓婃湇鍔$殑浠g爜銆傝屼笖xxxEJBHome瀵硅薄鍜寈xxEjbObject瀵硅薄閮芥槸鍒嗗竷寮忓璞★紝鎴戜滑鍦ㄦ鍙璁簒xxEjbObject瀵硅薄銆傛墍璋撳垎甯冨紡瀵硅薄錛屼粠鏈川涓婃潵璁詫紝鍒嗕負3涓儴鍒嗭細object server銆乻keleton銆乻tub銆傚叾涓璷bject server鍜宻keleton浣嶄簬鏈嶅姟鍣ㄧ錛岃宻tub浣嶄簬瀹㈡埛绔侽bject server璐熻矗瀹炵幇涓氬姟閫昏緫錛宻keleton璐熻矗marshal鍜寀nmarshal鏂規(guī)硶絳懼悕銆?nbsp;     
              
鍥句簩錛氬垎甯冨紡瀵硅薄
              
      鏄劇劧錛孍JB鐨勫鎴鳳紙璋冪敤EJB鐨勫璞★級鍙互鏄換浣曞璞★紝鍖呮嫭EJB鍜屼竴鑸殑Java綾葷敋鑷蟲槸鐢ㄤ換浣曡璦鍐欑殑corba瀹㈡埛绔?/span>
      浠嶦JB鐨勫鎴瘋瑙掓潵鐪嬬殑璇濓紝鎴戜滑鍙兘鐪嬪埌涓涓猦ome鎺ュ彛銆佷竴涓猺emote鎺ュ彛錛堝浜庡疄浣揵ean鐨勮瘽錛岃繕鍙互鐪嬭涓涓富閿被錛岃宐ean綾誨瀹㈡埛鏄笉鍙鐨勶級銆備絾鎴戜滑浠庝笂闈㈢殑璁鴻堪錛屾垜浠彲浠ョ煡閬擄紝瀵逛簬remote鎺ュ彛涓湴鏂規(guī)硶璋冪敤錛屽疄闄呬笂鏄鎬佸湴璋冪敤XXX_Stub綾匯傚嵆XXX_Stub瀵硅薄瀵瑰鎴峰叿鏈夊彲瑙佹э紙浣嗚繖縐嶅彲瑙佹ф槸閫忔槑鐨勶紝鍗沖鎴蜂笉鐭ラ亾榪欑鍙鎬х殑瀛樺湪錛夈傜敱浜庯紝XXX_Stub瀵硅薄鍜孫bject Server瀹炵幇浜嗙浉鍚岀殑鎺ュ彛錛屽茍涓擮bject server鐪熸瀹炵幇浜嗕笟鍔¢昏緫銆傛墍浠ワ紝褰撳湪瀹㈡埛绔皟鐢╔XX_Stub瀵硅薄鐨勬柟娉曟椂鍊欙紝XXX_Stub瀵硅薄閫氳繃socket閫氫俊鏈哄埗灝嗘柟娉曠鍚嶄紶緇橷XX_Skeleton瀵硅薄錛孹XX_Skeleton瀵硅薄鍦ㄥ幓濮旀墭Object Server瀹屾垚涓氬姟澶勭悊閫昏緫銆傚洜姝わ紝Object Server鏈韓鍙戠敓浜嗘敼鍙樸傛垜浠ОXXX_Stub瀵硅薄鏄疧bject Server瀵硅薄鐨勮繙紼嬪紩鐢紝騫惰涓哄綋鍒嗗竷寮忓璞′綔涓哄弬鏁頒紶閫掔殑鏃跺欙紝鏄氳繃寮曠敤浼犻掔殑錛堜細浜х敓鍓綔鐢?/span>

]]>
JavaBean PropertyChange 涔嬭璁℃ā寮廜bserver(杞?http://www.tkk7.com/yglwxl/archive/2011/02/13/344201.html涔?jié)瀹?/dc:creator>涔?jié)瀹?/author>Sun, 13 Feb 2011 10:26:00 GMThttp://www.tkk7.com/yglwxl/archive/2011/02/13/344201.htmlhttp://www.tkk7.com/yglwxl/comments/344201.htmlhttp://www.tkk7.com/yglwxl/archive/2011/02/13/344201.html#Feedback0http://www.tkk7.com/yglwxl/comments/commentRss/344201.htmlhttp://www.tkk7.com/yglwxl/services/trackbacks/344201.html闃呰鍏ㄦ枃

]]>
(杞?UML涓被鍥懼疄渚?/title><link>http://www.tkk7.com/yglwxl/archive/2011/02/12/344130.html</link><dc:creator>涔?jié)瀹?/dc:creator><author>涔?jié)瀹?/author><pubDate>Sat, 12 Feb 2011 05:02:00 GMT</pubDate><guid>http://www.tkk7.com/yglwxl/archive/2011/02/12/344130.html</guid><wfw:comment>http://www.tkk7.com/yglwxl/comments/344130.html</wfw:comment><comments>http://www.tkk7.com/yglwxl/archive/2011/02/12/344130.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yglwxl/comments/commentRss/344130.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yglwxl/services/trackbacks/344130.html</trackback:ping><description><![CDATA[<span style="font-size: 15px; line-height: 22px; "><span style="line-height: normal; word-spacing: 0px; font: normal normal normal 14px/22px georgia; text-transform: none; color: #4b4b4b; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; text-align: left; orphans: 2; widows: 2; ">鎺ュ彛錛氱┖蹇冨渾+鐩寸嚎錛堝攼鑰侀腑綾誨疄鐜頒簡‘璁蹭漢璇?#8217;錛夛紱<br style="line-height: 22px; " /> 渚濊禆錛氳櫄綰?綆ご錛堝姩鐗╁拰絀烘皵鐨勫叧緋伙級錛?br style="line-height: 22px; " /> 鍏寵仈錛氬疄綰?綆ご錛堜紒楣呴渶瑕佺煡閬撴皵鍊欐墠榪佺Щ錛夛紱<br style="line-height: 22px; " /> 鑱氬悎錛氱┖蹇冨洓杈瑰艦+瀹炵嚎+綆ご錛堥泚緹ゅ拰澶ч泚鐨勫叧緋伙級錛?br style="line-height: 22px; " /> 鍚堟垚/緇勫悎錛氬疄蹇冨洓杈瑰艦+瀹炵嚎+綆ご錛堥笩鍜岀繀鑶鐨勫叧緋伙級錛?br style="line-height: 22px; " /> 娉涘寲/</span></span><span style="font-size: 15px; line-height: 22px; "><span style="line-height: normal; word-spacing: 0px; font: normal normal normal 14px/22px georgia; text-transform: none; color: #4b4b4b; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; text-align: left; orphans: 2; widows: 2; ">緇ф壙</span></span><span style="font-size: 15px; line-height: 22px; "><span style="line-height: normal; word-spacing: 0px; font: normal normal normal 14px/22px georgia; text-transform: none; color: #4b4b4b; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; text-align: left; orphans: 2; widows: 2; ">錛氱┖蹇冧笁瑙掑艦+瀹炵嚎錛堝姩鐗╁拰楦熺殑緇ф壙鍏崇郴錛夛紱<br style="line-height: 22px; " /> 瀹炵幇錛氱┖蹇冧笁瑙掑艦+铏氱嚎錛堝疄鐜板ぇ闆侀緲旂殑鎺ュ彛錛夛紱 <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "></div> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><strong style="line-height: 22px; ">UML綾誨浘</strong>  </div> <dl style="line-height: 22px; "><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><span style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><img title="UML涓被鍥懼疄渚?- Doom - 椋庝簯鎺犺繃" height="670" src="http://hiphotos.baidu.com/liang125353769/pic/item/b70db9225fc72a0393580758.jpg" width="703" style="line-height: 22px; border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; max-width: 100%; border-right-width: 0px; " alt="" /></div> 瑙i噴</span><span style="line-height: 22px; ">UML<span style="line-height: 22px; ">綾誨浘錛?/span></span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; ">1.<span style="line-height: normal; ">      <span style="line-height: 19px; "> </span></span><span style="line-height: 22px; ">棣栧厛鐪?#8220;鍔ㄧ墿”鐭╁艦妗嗭紝瀹冧唬琛ㄤ竴涓被銆傝綾誨浘鍒嗕負涓夊眰錛岀涓灞傛樉紺虹被鐨勫悕縐幫紝濡傛灉鏄娊璞$被灝辮鐢ㄦ枩浣撴樉紺恒傜浜屽眰鏄被鐨勭壒鎬э紝閫氬父灝辨槸瀛楁鍜屽睘鎬с傜涓夊眰鏄被鐨勬搷浣滐紝閫氬父鏄柟娉曞拰琛屼負銆?/span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "><span style="line-height: 22px; ">   娉ㄦ剰鍓嶉潰鐨勭鍙鳳紝‘</span>+<span style="line-height: 22px; ">’琛ㄧず</span>public, ‘<span style="line-height: 22px; ">鈥?/span>’<span style="line-height: 22px; "> </span><span style="line-height: 22px; ">琛ㄧず</span>private, ‘#’<span style="line-height: 22px; ">琛ㄧず</span>protected.   </div> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><img title="UML涓被鍥懼疄渚?- Doom - 椋庝簯鎺犺繃" src="http://hiphotos.baidu.com/liang125353769/pic/item/48598af20714951d342acc58.jpg" style="line-height: 22px; border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; max-width: 100%; cursor: pointer; border-right-width: 0px; " alt="" />                                           </div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; ">2.<span style="line-height: normal; ">      <span style="line-height: 19px; "> </span></span>“<span style="line-height: 22px; ">椋炵繑</span>”<span style="line-height: 22px; ">鐭╁艦妗嗚〃紺轟竴涓帴鍙e浘錛屽畠涓庣被鍥劇殑鍖哄埆涓昏鏄《绔湁銆?/span>interface<span style="line-height: 22px; ">銆嬫樉紺猴紝絎竴琛屾槸鎺ュ彛鍚嶇О錛岀浜岃鏄帴鍙f柟娉曘傛帴鍙h繕鏈夊彟涓縐嶈〃紺烘柟娉曪紝淇楃О媯掓緋栬〃紺烘硶錛屽氨鏄攼鑰侀腑綾誨疄鐜頒簡“璁蹭漢璇?#8221;鐨勬帴鍙c?/span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><img title="UML涓被鍥懼疄渚?- Doom - 椋庝簯鎺犺繃" height="159" src="http://hiphotos.baidu.com/liang125353769/pic/item/2f017cbee612fc4718d81f58.jpg" width="500" style="line-height: 22px; border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; max-width: 100%; cursor: pointer; border-right-width: 0px; " alt="" />              </div> </div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><span style="line-height: 22px; color: #0000ff; ">interface</span><span style="line-height: 22px; color: #000000; "> IFly                              </span><span style="line-height: 22px; color: #0000ff; ">interface</span><span style="line-height: 22px; color: #000000; "> Ilanguage                              <br style="line-height: 22px; " /> {                                              {<br style="line-height: 22px; " />    </span><span style="line-height: 22px; color: #0000ff; ">void</span><span style="line-height: 22px; color: #000000; "> Fly();                                   <span style="line-height: 22px; "> </span></span><span style="line-height: 22px; color: #0000ff; ">void</span><span style="line-height: 22px; color: #000000; "> Speak();<br style="line-height: 22px; " /> }                                             }</span></div> </div> </div> </dt><dt style="line-height: 22px; "><br style="line-height: 22px; " /> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; ">3.<span style="line-height: normal; ">      <span style="line-height: 19px; "> </span></span><span style="line-height: 22px; ">鍔ㄧ墿錛岄笩錛岄腑錛屽攼鑰侀腑浠栦滑涔嬮棿閮芥槸緇ф壙鐨勫叧緋伙紝<span style="line-height: 22px; color: red; "><span style="line-height: 22px; ">緇ф壙鍏崇郴鐢ㄧ┖蹇冧笁瑙掑艦</span>+<span style="line-height: 22px; ">瀹炵幇鏉ヨ〃紺?/span></span></span><span style="line-height: 22px; ">銆?/span>   </div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><img title="UML涓被鍥懼疄渚?- Doom - 椋庝簯鎺犺繃" src="http://hiphotos.baidu.com/liang125353769/pic/item/92d8300b954bc073b0351d58.jpg" style="line-height: 22px; border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; max-width: 100%; cursor: pointer; border-right-width: 0px; " alt="" /></div>                  </div> </dt><dt style="line-height: 22px; "><br style="line-height: 22px; " /> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "><span style="line-height: 22px; ">4.“澶ч泚”瀹炵幇浜?#8220;椋炵繑”鎺ュ彛銆?span style="line-height: 22px; color: red; "><span style="line-height: 22px; ">瀹炵幇鎺ュ彛鐢?/span><span style="line-height: 22px; ">絀哄績涓夎褰?/span>+<span style="line-height: 22px; ">铏氱嚎鏉ヨ〃紺?/span></span></span><span style="line-height: 22px; ">銆傦紙<span style="line-height: 22px; background-color: yellow; ">娉細涓嬮潰鐨勫浘涓簲涓虹┖蹇冧笁瑙掑艦</span>錛?/span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "><span style="line-height: 22px; "><span style="line-height: 22px; color: #0000ff; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><img title="UML涓被鍥懼疄渚?- Doom - 椋庝簯鎺犺繃" src="http://hiphotos.baidu.com/liang125353769/pic/item/7cd2161f3a40815240341758.jpg" style="line-height: 22px; border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; max-width: 100%; cursor: pointer; border-right-width: 0px; " alt="" /></div> </span></span></div> </dt><dt style="line-height: 22px; "><br style="line-height: 22px; " /> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><span style="line-height: 22px; color: #0000ff; ">class</span><span style="line-height: 22px; color: #000000; "> Bird:Animal                      </span><span style="line-height: 22px; color: #0000ff; ">class</span><span style="line-height: 22px; color: #000000; "> WideGoose:IFly<br style="line-height: 22px; " /> {                                        {<br style="line-height: 22px; " />    </span><span style="line-height: 22px; color: #008000; ">//</span><span style="line-height: 22px; color: #008000; ">緇ф壙鍔ㄧ墿綾?nbsp;                                </span><span style="line-height: 22px; color: #008000; ">//</span><span style="line-height: 22px; color: #008000; ">瀹炵幇椋炵繑鎺ュ彛</span><span style="line-height: 22px; color: #008000; "><br style="line-height: 22px; " /> </span><span style="line-height: 22px; color: #000000; ">}                                        }</span></div> </dt><dt style="line-height: 22px; "><br style="line-height: 22px; " /> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; ">5.<span style="line-height: normal; ">      <span style="line-height: 19px; "> </span></span><span style="line-height: 22px; ">浼侀箙涓庢皵鍊欐湁寰堝ぇ鐨勫叧緋伙紝浼侀箙闇瑕?#8220;鐭ラ亾”姘斿欑殑鍙樺寲錛岄渶瑕?#8220;浜嗚В”姘斿欒寰嬨傚綋涓涓被“鐭ラ亾”鍙︿竴涓被鏃訛紝鍙互鐢ㄥ叧鑱?/span>(association)<span style="line-height: 22px; ">鍏崇郴銆?span style="line-height: 22px; color: red; ">鍏寵仈鍏崇郴鐢ㄥ疄綰跨澶存潵琛ㄧず</span>銆?/span><span style="line-height: 22px; ">  </span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "><span style="line-height: 22px; ">     <img title="UML涓被鍥懼疄渚?- Doom - 椋庝簯鎺犺繃" src="http://hiphotos.baidu.com/liang125353769/pic/item/568a4d1ed5a7eb47314e1558.jpg" style="line-height: 22px; border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; max-width: 100%; cursor: pointer; border-right-width: 0px; " alt="" /></span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><span style="line-height: 22px; color: #0000ff; ">class</span><span style="line-height: 22px; color: #000000; "> Penguin :Bird<br style="line-height: 22px; " /> {<br style="line-height: 22px; " />    </span><span style="line-height: 22px; color: #0000ff; ">private</span><span style="line-height: 22px; color: #000000; "> Climate climate;</span><span style="line-height: 22px; color: #008000; ">//</span><span style="line-height: 22px; color: #008000; ">鍦ㄤ紒楣匬enguin涓紝寮曠敤鍒版皵鍊機limate瀵硅薄</span><span style="line-height: 22px; color: #008000; "><br style="line-height: 22px; " /> </span><span style="line-height: 22px; color: #000000; ">}</span></div> </dt><dt style="line-height: 22px; "><br style="line-height: 22px; " /> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; ">6.<span style="line-height: normal; ">      <span style="line-height: 19px; "> </span></span><span style="line-height: 22px; ">“澶ч泚”鍜?#8220;闆佺兢”榪欎袱涓被銆傚ぇ闆佹槸緹ゅ眳鍔ㄧ墿錛屾瘡鍙ぇ闆侀兘灞炰簬涓涓泚緹わ紝涓涓泚緹ゅ彲浠ユ湁澶氬彧澶ч泚銆傛墍浠ュ畠浠箣闂村氨婊¤凍鑱氬悎</span>(Aggregation)<span style="line-height: 22px; ">鍏崇郴銆?span style="line-height: 22px; color: red; "><span style="line-height: 22px; background-color: yellow; "><span style="line-height: 22px; color: #000000; "><span style="line-height: 22px; font-size: 10.5pt; ">鑱氬悎琛ㄧず涓縐嶅急鐨?#8220;鎷ユ湁”鍏崇郴錛屼綋鐜扮殑鏄?/span><span style="line-height: normal; ">A</span><span style="line-height: 22px; font-size: 10.5pt; ">瀵硅薄鍙互鍖呭惈</span><span style="line-height: normal; ">B</span><span style="line-height: 22px; font-size: 10.5pt; ">瀵硅薄錛屼絾</span><span style="line-height: normal; ">B</span><span style="line-height: 22px; font-size: 10.5pt; ">瀵硅薄涓嶆槸</span><span style="line-height: normal; ">A</span><span style="line-height: 22px; font-size: 10.5pt; ">瀵硅薄鐨勪竴閮ㄥ垎銆?/span></span></span></span></span><span style="line-height: 22px; "><span style="line-height: 22px; color: red; "><span style="line-height: 22px; ">鑱氬悎鍏崇郴鐢ㄧ┖蹇冪殑鑿卞艦</span>+<span style="line-height: 22px; "> </span><span style="line-height: 22px; ">瀹炵嚎綆ご琛ㄧず</span></span></span><span style="line-height: 22px; ">銆?/span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "><span style="line-height: 22px; ">    <span style="line-height: 22px; color: #0000ff; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><img title="UML涓被鍥懼疄渚?- Doom - 椋庝簯鎺犺繃" src="http://hiphotos.baidu.com/liang125353769/pic/item/6b9361c93d15b55a7e3e6f58.jpg" style="line-height: 22px; border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; max-width: 100%; cursor: pointer; border-right-width: 0px; " alt="" /></div> </span></span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "></div> <br style="line-height: 22px; " /> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><span style="line-height: 22px; color: #0000ff; ">class</span><span style="line-height: 22px; color: #000000; "> WideGooseAggregate<br style="line-height: 22px; " /> {<br style="line-height: 22px; " />    </span><span style="line-height: 22px; color: #0000ff; ">private</span><span style="line-height: 22px; color: #000000; "> WideGoose[] arrayWideGoose;<br style="line-height: 22px; " />    </span><span style="line-height: 22px; color: #008000; ">//</span><span style="line-height: 22px; color: #008000; ">鍦ㄩ泚緹ideGooseAggregate綾諱腑錛屾湁澶ч泚鏁扮粍瀵硅薄arrayWideGoose</span><span style="line-height: 22px; color: #008000; "><br style="line-height: 22px; " /> </span><span style="line-height: 22px; color: #000000; ">}</span></div> </dt><dt style="line-height: 22px; "><br style="line-height: 22px; " /> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; ">7.<span style="line-height: normal; ">      <span style="line-height: 19px; "> </span></span><span style="line-height: 22px; ">“楦?#8221;鍜?#8220;緲呰唨”榪欎袱涓被銆傞笩鍜岀繀鑶浼兼暣浣撳拰閮ㄥ垎鐨勫叧緋伙紝騫朵笖緲呰唨鍜岄笩鐨勭敓鍛藉懆鏈熸槸鐩稿悓鐨勶紝鍦ㄨ繖閲岄笩鍜屽叾緲呰唨灝辨槸鍚堟垚鍏崇郴銆?span style="line-height: 22px; background-color: yellow; "><span style="line-height: 22px; ">鍚堟垚</span>(composition)<span style="line-height: 22px; ">鏄竴縐嶅己鐨?#8220;鎷ユ湁”鍏崇郴錛屼綋鐜頒簡涓ユ牸鐨勯儴鍒嗗拰鏁翠綋鐨勫叧緋伙紝閮ㄥ垎鍜屾暣浣撶殑鐢熷懡鍛ㄦ湡涓鏍?/span></span></span><span style="line-height: 22px; ">銆?span style="line-height: 22px; color: red; "><span style="line-height: 22px; ">鍚堟垚鍏崇郴鐢ㄥ疄蹇冪殑鐨勮彵褰?/span>+<span style="line-height: 22px; ">瀹炵嚎綆ご鏉ヨ〃紺?/span></span></span><span style="line-height: 22px; ">銆傚彟澶栵紝鍚堟垚鍏崇郴鐨勮繛綰夸袱绔繕鏈変竴涓暟瀛?#8220;</span>1<span style="line-height: 22px; ">”鍜屾暟瀛?#8220;</span>2<span style="line-height: 22px; ">”錛岋紝榪欒縐頒負鍩烘暟銆傝〃鏄庤繖涓绔殑綾誨彲浠ユ湁鍑犱釜瀹炰緥錛屽緢鏄劇劧錛屼竴涓笩搴旇鏈変袱鏀繀鑶銆傚鏋滀竴涓被鍙兘鏈夋棤鏁頒釜瀹炰緥錛屽垯灝辯敤“</span>n<span style="line-height: 22px; ">”鏉ヨ〃紺恒傚叧鑱斿叧緋伙紝鑱氬悎鍏崇郴涔熷彲浠ユ湁鍩烘暟鐨勩?/span></div> </dt></dl><dl style="line-height: 22px; "><dt style="line-height: 22px; "><span style="line-height: 22px; color: #0000ff; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><img title="UML涓被鍥懼疄渚?- Doom - 椋庝簯鎺犺繃" src="http://hiphotos.baidu.com/liang125353769/pic/item/59df7916e3ad1b44c83d6d58.jpg" style="line-height: 22px; border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; max-width: 100%; cursor: pointer; border-right-width: 0px; " alt="" /></div> </span> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><span style="line-height: 22px; color: #0000ff; ">class</span><span style="line-height: 22px; color: #000000; "> Bird <br style="line-height: 22px; " /> {<br style="line-height: 22px; " />   </span><span style="line-height: 22px; color: #0000ff; ">private</span><span style="line-height: 22px; color: #000000; "> Wing wing;<br style="line-height: 22px; " />   </span><span style="line-height: 22px; color: #0000ff; ">public</span><span style="line-height: 22px; color: #000000; "> Bird()<br style="line-height: 22px; " />    {<br style="line-height: 22px; " />       wing</span><span style="line-height: 22px; color: #000000; ">=</span><span style="line-height: 22px; color: #0000ff; ">new</span><span style="line-height: 22px; color: #000000; "> Wing();<br style="line-height: 22px; " />     </span><span style="line-height: 22px; color: #008000; ">//</span><span style="line-height: 22px; color: #008000; ">鍦ㄩ笩Bird綾諱腑錛屽垵濮嬪寲鏃訛紝瀹炰緥鍖栫繀鑶Wing,瀹冧滑涔嬮棿鍚屾椂鐢熸垚</span><span style="line-height: 22px; color: #008000; "><br style="line-height: 22px; " /> </span><span style="line-height: 22px; color: #000000; ">   }<br style="line-height: 22px; " /> }</span></div> </dt><dt style="line-height: 22px; "><br style="line-height: 22px; " /> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; ">8.<span style="line-height: normal; ">      <span style="line-height: 19px; "> </span></span><span style="line-height: 22px; ">“鍔ㄧ墿”銆?#8220;姘ф皵”涓?#8220;姘?#8221;涔嬮棿銆傚姩鐗╂湁鍑犲ぇ鐗瑰緛錛屾瘮濡傛湁鏂伴檲浠h阿錛岃兘綣佹畺銆傝屽姩鐗╄鏈夌敓鍛斤紝闇瑕佹哀姘旓紝姘翠互鍙婇鐗╃瓑銆備篃灝辨槸璇村姩鐗╀緷璧栦簬姘ф皵鍜屾按銆傚畠浠箣闂存槸<span style="line-height: 22px; color: red; "><span style="line-height: 22px; ">渚濊禆鍏崇郴</span>(Dependency),<span style="line-height: 22px; ">鐢ㄨ櫄綰跨澶存潵琛ㄧず</span></span></span><span style="line-height: 22px; ">銆?/span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "><span style="line-height: 22px; "><span style="line-height: 22px; color: #0000ff; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><img title="UML涓被鍥懼疄渚?- Doom - 椋庝簯鎺犺繃" src="http://hiphotos.baidu.com/liang125353769/pic/item/8167d70857ae0c823ac76358.jpg" style="line-height: 22px; border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; max-width: 100%; cursor: pointer; border-right-width: 0px; " alt="" /></div> </span></span></div> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; margin-left: 18pt; text-indent: -18pt; "></div> <br style="line-height: 22px; " /> </dt><dt style="line-height: 22px; "> <div style="font-family: Arial; word-wrap: break-word; word-break: break-all; visibility: visible !important; zoom: 1 !important; filter: none; font-size: 14px; line-height: 22px; "><span style="line-height: 22px; color: #0000ff; ">abstract</span> <span style="line-height: 22px; color: #0000ff; ">class</span><span style="line-height: 22px; color: #000000; "> Animal<br style="line-height: 22px; " /> {<br style="line-height: 22px; " />    </span><span style="line-height: 22px; color: #0000ff; ">public</span><span style="line-height: 22px; color: #000000; "> bolism(Oxygen oxygen,Water water)<br style="line-height: 22px; " />     {<br style="line-height: 22px; " />     } <br style="line-height: 22px; " /> }</span></div> </dt></dl></span></span> <img src ="http://www.tkk7.com/yglwxl/aggbug/344130.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yglwxl/" target="_blank">涔?jié)瀹?/a> 2011-02-12 13:02 <a href="http://www.tkk7.com/yglwxl/archive/2011/02/12/344130.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Bitwise operators and Shift operatorshttp://www.tkk7.com/yglwxl/archive/2008/05/20/201630.html涔?jié)瀹?/dc:creator>涔?jié)瀹?/author>Tue, 20 May 2008 05:22:00 GMThttp://www.tkk7.com/yglwxl/archive/2008/05/20/201630.htmlhttp://www.tkk7.com/yglwxl/comments/201630.htmlhttp://www.tkk7.com/yglwxl/archive/2008/05/20/201630.html#Feedback0http://www.tkk7.com/yglwxl/comments/commentRss/201630.htmlhttp://www.tkk7.com/yglwxl/services/trackbacks/201630.html 鎸変綅榪涜涓庤繍綆?錛?&
鎸変綅榪涜鎴栬繍綆?錛?|
鎸変綅榪涜浣嶅紓榪愮畻錛?^
鎸変綅榪涜鍙栧弽榪愮畻錛?~
鎸変綅榪涜寰幆宸︾Щ錛?lt;<錛岃繍綆楃宸︿晶瀵硅薄宸︾Щ鐢卞彸渚ф寚瀹氱殑浣嶆暟錛屼綆浣嶈ˉ0錛屾渶楂樹綅鎶涘純銆傚甫絎﹀彿鐨勫乏縐諱綅榪愮畻鐩稿綋浜庡宸︽搷浣滄暟榪涜涔?榪愮畻銆?
鎸変綅榪涜寰幆鍙崇Щ錛?gt;>錛岃繍綆楃宸︿晶瀵硅薄鍙崇Щ鐢卞彸渚ф寚瀹氱殑浣嶆暟錛岃嫢鍊間負姝o紝鍦ㄦ渶楂樹綅鎻掑叆0錛岃嫢鍊間負璐燂紝鍦ㄦ渶楂樹綅鎻掑叆1錛屽嵆縐誨叆鐨勬渶楂樹綅鍜屽師鏈楂樼鍙蜂綅鐩稿悓銆傚甫絎﹀彿鐨勫彸縐諱綅榪愮畻鐩稿綋浜庡宸﹁竟鐨勮繍綆楀璞¤繘琛岄櫎2榪愮畻銆?
鎸変綅榪涜鏃犵鍙峰彸縐伙細>>>錛屾棤璁鴻繍綆楃宸﹁竟鐨勮繍綆楀璞″彇鍊兼璐燂紝閮藉湪楂樹綅鎻掑叆0錛屽嵆縐誨叆浣嶅緇堣ˉ0.
瑕佹敞鎰忔槸娌℃湁鎸変綅榪涜鏃犵鍙峰乏縐葷殑銆備綅榪愮畻絎︾殑鎿嶄綔鏁板彧鑳芥槸鏁存暟錛宑har,byte,short,
int鍜宭ong,榪涜浣嶈繍綆楁椂錛屾繪槸鍏堝皢瀛楃鍨嬪箋佸瓧鑺傚瀷鍊煎拰鐭暣鍨嬪艱漿鎹負鏁村瀷鍐嶈繘琛屼綅榪愮畻銆備綅榪愮畻絎︽父鏍囩殑鎿嶄綔鏁扮敤浜庢寚瀹氱Щ鍔ㄧ殑浣嶆暟錛屾寜瑙勫畾鍏朵笉搴旇秴榪囧乏渚ф暟鐨勮繘鍒惰〃紺轟綅鏁般?
The bitwise operators allow you to manipulate individual bits in an integral primitive data type.Bitwise operators perform Boolean algebra on the corresponding bits in the two arguments to produce the result. The bitwise operators come from C’s low-level orientation, where you often manipulate hardware
directly and must set the bits in hardware registers. Java was originally designed to be embedded in TV set-top boxes, so this low-level orientation still made sense. However, you probably won’t use the bitwise operators much.
The bitwise AND operator (&) produces a one in the output bit if both input bits are one; otherwise, it produces a zero.
The bitwise OR operator (|) produces a one in the output bit if either input bit is a one and produces a zero only if both input bits are zero.
The bitwise EXCLUSIVE OR, or XOR (^), produces a one in the output bit if one or the other input bit is a one, but not both.
The bitwise NOT (~, also called the ones complement operator) is a unary operator; it takes only one argument. (All other bitwise operators are binary operators.) Bitwise NOT produces the opposite of the input bit鈥攁 one if the input bit is zero, a zero if the input bit is one.

]]>
Special case: primitive typeshttp://www.tkk7.com/yglwxl/archive/2008/05/20/201623.html涔?jié)瀹?/dc:creator>涔?jié)瀹?/author>Tue, 20 May 2008 05:12:00 GMThttp://www.tkk7.com/yglwxl/archive/2008/05/20/201623.htmlhttp://www.tkk7.com/yglwxl/comments/201623.htmlhttp://www.tkk7.com/yglwxl/archive/2008/05/20/201623.html#Feedback0http://www.tkk7.com/yglwxl/comments/commentRss/201623.htmlhttp://www.tkk7.com/yglwxl/services/trackbacks/201623.htmlSpecial case: primitive types

Java determines the size of each primitive type. These sizes don’t change from one machine

architecture to another as they do in most languages. This size invariance is one reason Java

programs are more portable than programs in most other languages.

 

 

All numeric types are signed, so don’t look for unsigned types.

The size of the boolean type is not explicitly specified; it is only defined to be able to take the literal values true or false.

The “wrapper” classes for the primitive data types allow you to make a non-primitive object on the heap to represent that primitive type. For example:

char c = 'x';

Character ch = new Character(c);

Or you could also use:

Character ch = new Character('x');

Java SE5 autoboxing will automatically convert from a primitive to a wrapper type:

Character ch = 'x';

and back:

char c = ch;

The reasons for wrapping primitives will be shown in a later chapter.

High-precision numbers

Java includes two classes for performing high-precision arithmetic: BigInteger and

BigDecimal. Although these approximately fit into the same category as the “wrapper” classes, neither one has a primitive analogue.

Both classes have methods that provide analogues for the operations that you perform on

primitive types. That is, you can do anything with a BigInteger or BigDecimal that you can with an int or float, it’s just that you must use method calls instead of operators. Also, since there’s more involved, the operations will be slower. You’re exchanging speed for accuracy.

BigInteger supports arbitrary-precision integers. This means that you can accurately represent integral values of any size without losing any information during operations.

BigDecimal is for arbitrary-precision fixed-point numbers; you can use these for accurate

monetary calculations, for example.

 

OX123錛?/span>1×162錛?/span>2×161錛?/span>3×160



]]>
鏁村瀷鏁版嵁http://www.tkk7.com/yglwxl/archive/2008/05/20/201617.html涔?jié)瀹?/dc:creator>涔?jié)瀹?/author>Tue, 20 May 2008 05:10:00 GMThttp://www.tkk7.com/yglwxl/archive/2008/05/20/201617.htmlhttp://www.tkk7.com/yglwxl/comments/201617.htmlhttp://www.tkk7.com/yglwxl/archive/2008/05/20/201617.html#Feedback0http://www.tkk7.com/yglwxl/comments/commentRss/201617.htmlhttp://www.tkk7.com/yglwxl/services/trackbacks/201617.html 1.鍗佽繘鍒?br /> 2.鍏繘鍒訛紝浠寮澶碠123錛?×82錛?×81錛?×80錛濆崄榪涘埗鐨?3
3.鍗佸叚榪涘埗 錛屼互ox寮澶?nbsp; OX123錛?/span>1×162錛?/span>2×161錛?/span>3×160



]]>
Introduction to Objectshttp://www.tkk7.com/yglwxl/archive/2008/05/20/199515.html涔?jié)瀹?/dc:creator>涔?jié)瀹?/author>Tue, 20 May 2008 05:10:00 GMThttp://www.tkk7.com/yglwxl/archive/2008/05/20/199515.htmlhttp://www.tkk7.com/yglwxl/comments/199515.htmlhttp://www.tkk7.com/yglwxl/archive/2008/05/20/199515.html#Feedback0http://www.tkk7.com/yglwxl/comments/commentRss/199515.htmlhttp://www.tkk7.com/yglwxl/services/trackbacks/199515.html1.The hidden implementation
The goal of the class creator is to build a class that exposes only what is necessary to the client programmer and keeps everything else hidden. Why?
(1)Becuase if it is hidden, the client programmer can't access it, which means that the class creator can change the hidden portion at will withou worring about the impact on anyone else.
(2)The hidden portion usually reprsents the tender insides of an object that could easily be corrupted by a careless or uninformed client programmer, so hiding the implementation reduces program bugs.

2.Reusing the implementation
The simplest way to reuse a class is to just use an object of that class directly, but you can also place an object of that class inside a new class. We call this "creating a member object." Your new class can be made up of any mumber and type of other objectss, in any combination that you need to achieve the fuctionality desired in your new class. Because you are composing a new class from existing classes, this conception is called composition. Compositon is often referred to as a "has-a" relationship, as "A car has an engine."
Because inheritance is so important in OOP, it is often highly emphasized, and the new programmer can get the idea that inheritance should be used everywhere. This can result in awkward and overly complicated designs. Instead, you should first look to composition when creating new classes, since it is simpler and more flexible. If you take this approach,your designer will be cleaner. Once you have had some experience, it will be reasonably obvious when you need inheritance.

3.Inheritance
You have two ways to differentiate your new derived class from the original base class.
The first is quite straightforward: You simply add brand new methods to the derived class. This means that the base class simply didn't as much as you wanted it to, so you added more methods. This simple and primitive use for inheritance is, at times, the perfect solution to your problem. However, you should look closely for the posiblilty that your base class might also need these additional methods. This process of discovery and iteration of your design happens regularly in OOP.
The second and more important way to differentiate your new class is to change the behavior of an existing base-class method. This is referred to as overriding that method. To override a method, you simply create a new definition for the method in the derived class. You are saying, "I am using the same interface method here, but I want it to do something different for my new type."

4.Is-a vs. is-like-a relationships

5.Interchangeable objects with polymorphism

6The single rooted hierarchy
All objects have a single rooted hierarchy can be guaranteed to have certain functionality. You know you can perform certain basic operations on every object in your system. All objects can easy be created on the heap, and argument passing is greatly simplified.
A single rooted hierarchy makes it much easier to implement a garbage collector, which is one of the fundamental improvements of Java over C++. And since information about the type of an object is guaranteed to be in all objects, you'll never end up with an object whose type you cannot determine. This is especially important with system-level operations, such as exception handling, and to allow greater flexibility in programming.

7.Containers

8.Parameterized types(generics)
One of the big changes in Java SE5 is the addition of parameterized types, called generics in java. you will recongize the use of generics by angle brackets with types inside.

9.Object creation & lifetime
How can you possibly know when to destroy the objects?
(1).C++ takes the approach that control of efficiency is the most important issue, so it give the programmer a choice.
(2).Java, in heap

10 Exception handling: dealing with errors

























]]>
java byte綾誨瀷涓轟粈涔堟槸錛?27鈥斺?錛?28錛?/title><link>http://www.tkk7.com/yglwxl/archive/2008/05/20/201595.html</link><dc:creator>涔?jié)瀹?/dc:creator><author>涔?jié)瀹?/author><pubDate>Tue, 20 May 2008 04:48:00 GMT</pubDate><guid>http://www.tkk7.com/yglwxl/archive/2008/05/20/201595.html</guid><wfw:comment>http://www.tkk7.com/yglwxl/comments/201595.html</wfw:comment><comments>http://www.tkk7.com/yglwxl/archive/2008/05/20/201595.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/yglwxl/comments/commentRss/201595.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/yglwxl/services/trackbacks/201595.html</trackback:ping><description><![CDATA[鎵鏈夌殑鏁存暟綾誨瀷錛堥櫎浜哻har 綾誨瀷涔嬪錛夐兘鏄湁絎﹀彿鐨勬暣鏁?br /> <br /> 鍥犱負錛?java鐨刡yte鏄?bit錛堜綅錛夛紝灝辨槸8涓?/1 鏉ヨ〃紺恒?br /> 浣嗘槸絎竴浣嶆槸絎﹀彿浣嶏紝琛ㄧず姝f暟榪樻槸璐熸暟銆傛墍浠ワ細<br /> 0000 0001琛ㄧず1錛?nbsp;    錛?×  <span style="font-size: 10.5pt; font-family: Georgia">2<sup>0</sup></span>錛?br /> 0000 0000琛ㄧず0錛?nbsp;    錛?×  <span style="font-size: 10.5pt; font-family: Georgia">2<sup>0</sup></span>錛?br /> <br /> 璁$畻鏈轟腑璐熸暟鐨勪簩榪涘埗鐮佹槸鏄礋鏁扮殑緇濆鍊煎彇鍙嶏紝鐒跺悗鍔?.<br /> 渚嬪錛?鐨勪簩榪涘埗錛?br /> 錛?鐨勭粷瀵瑰兼槸1錛?000 0001錛?<br /> 鍙栧弽鏄紙1111 1110錛?<br /> 鍐嶅姞 1錛?000 0001 錛夛紱<br /> 緇撴灉鏄紙1111 1111錛?br /> <br /> 瑕佸涓涓礋鏁扮殑浜岃繘鍒惰繘琛岃В鐮侊紝棣栧厛瀵瑰叾鎵鏈夌殑浣嶅彇鍙嶏紝鐒跺悗鍔?銆?br /> 渚嬪錛?鐨?nbsp;浜岃繘鍒?nbsp;  錛?111 1111錛?br /> 鍙栧弽錛?nbsp; 0000 0000 鏄?<br /> 鍐嶅姞1錛氾紙0錛?錛?錛?br /> 絎﹀彿浣嶆槸1錛屾槸璐熸暟錛屾墍浠ユ槸錛?<br /> <br /> 1000 0000 琛ㄧず錛?28錛?nbsp;  錛堣В鐮佽繃紼嬶細浣嶅彇鍙嶆槸0111 1111錛濓紳銆?27錛岀劧鍚庡姞1錛濓紳銆?28錛岀鍙蜂綅涓?,鏄礋鏁幫紝琛ㄧず錛?28錛?br /> <br /> <img src ="http://www.tkk7.com/yglwxl/aggbug/201595.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/yglwxl/" target="_blank">涔?jié)瀹?/a> 2008-05-20 12:48 <a href="http://www.tkk7.com/yglwxl/archive/2008/05/20/201595.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://shandonghj.com" target="_blank">国产成人免费a在线视频app</a>| <a href="http://ytsp88.com" target="_blank">一区二区三区免费视频观看</a>| <a href="http://av56cc.com" target="_blank">在线看无码的免费网站</a>| <a href="http://w9366.com" target="_blank">国产亚洲精品美女久久久</a>| <a href="http://416164.com" target="_blank">eeuss影院ss奇兵免费com</a>| <a href="http://liangdy.com" target="_blank">国产福利电影一区二区三区,亚洲国模精品一区</a>| <a href="http://25v8.com" target="_blank">国产精品亚洲精品观看不卡</a>| <a href="http://15831883389.com" target="_blank">中文字幕在线免费观看</a>| <a href="http://aiwoqi.com" target="_blank">亚洲欧洲日产专区</a>| <a href="http://4husese.com" target="_blank">国产精品爱啪在线线免费观看</a>| <a href="http://snsdtv.com" target="_blank">亚洲国产美女福利直播秀一区二区 </a>| <a href="http://50077995.com" target="_blank">最近最新中文字幕完整版免费高清</a>| <a href="http://yulongfilm.com" target="_blank">亚洲日本在线免费观看</a>| <a href="http://s8sb.com" target="_blank">日本高清在线免费</a>| <a href="http://3344088.com" target="_blank">久久亚洲国产最新网站</a>| <a href="http://pengkaimjg.com" target="_blank">夭天干天天做天天免费看</a>| <a href="http://kanzhelu23.com" target="_blank">亚洲国产日韩a在线播放</a>| <a href="http://saozib.com" target="_blank">国产精品二区三区免费播放心</a>| <a href="http://bdgxhome.com" target="_blank">黄色网址免费在线</a>| <a href="http://cqshangshu.com" target="_blank">在线a亚洲v天堂网2019无码</a>| <a href="http://clever-ad.com" target="_blank">gogo免费在线观看</a>| <a href="http://hljjlhl.com" target="_blank">久久精品亚洲综合</a>| <a href="http://7766qq.com" target="_blank">亚洲第一成年免费网站</a>| <a href="http://jcthbank.com" target="_blank">亚洲AV无码国产剧情</a>| <a href="http://www330330.com" target="_blank">亚洲精品WWW久久久久久</a>| <a href="http://cc006.com" target="_blank">一个人免费视频在线观看www </a>| <a href="http://xjscr.com" target="_blank">337P日本欧洲亚洲大胆艺术图</a>| <a href="http://www676617.com" target="_blank">四虎免费永久在线播放</a>| <a href="http://zhaosaohuo.com" target="_blank">老司机精品免费视频</a>| <a href="http://ddtase.com" target="_blank">亚洲av鲁丝一区二区三区</a>| <a href="http://ruidamo.com" target="_blank">国产情侣激情在线视频免费看</a>| <a href="http://hnmeiankj.com" target="_blank">亚洲成a人片在线看</a>| <a href="http://77133144.com" target="_blank">亚洲成a人片在线播放</a>| <a href="http://szq18888.com" target="_blank">成人性生交大片免费看好</a>| <a href="http://ymiwang.com" target="_blank">亚洲av永久综合在线观看尤物</a>| <a href="http://cqkalai.com" target="_blank">国产成人高清精品免费软件</a>| <a href="http://0967c.com" target="_blank">丝袜足液精子免费视频</a>| <a href="http://bb927bb.com" target="_blank">亚洲伊人久久大香线蕉啊</a>| <a href="http://51ruilon.com" target="_blank">免费日本黄色网址</a>| <a href="http://pppmmmm.com" target="_blank">99久久免费精品视频</a>| <a href="http://2886868.com" target="_blank">国产精品国产亚洲区艳妇糸列短篇</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>