锘??xml version="1.0" encoding="utf-8" standalone="yes"?>666精品国产精品亚洲,亚洲婷婷天堂在线综合,亚洲午夜国产精品无卡http://www.tkk7.com/galaxyly/category/19245.htmlMy javaWorldzh-cnSun, 15 Apr 2007 03:40:50 GMTSun, 15 Apr 2007 03:40:50 GMT60JAVA3D鍖呭姛鑳戒粙緇?/title><link>http://www.tkk7.com/galaxyly/archive/2007/04/15/110752.html</link><dc:creator>閾舵渤嫻風洍</dc:creator><author>閾舵渤嫻風洍</author><pubDate>Sun, 15 Apr 2007 03:06:00 GMT</pubDate><guid>http://www.tkk7.com/galaxyly/archive/2007/04/15/110752.html</guid><wfw:comment>http://www.tkk7.com/galaxyly/comments/110752.html</wfw:comment><comments>http://www.tkk7.com/galaxyly/archive/2007/04/15/110752.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/galaxyly/comments/commentRss/110752.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/galaxyly/services/trackbacks/110752.html</trackback:ping><description><![CDATA[     鎽樿: 鍖? 綆浠? 銆 銆 銆 銆 銆...  <a href='http://www.tkk7.com/galaxyly/archive/2007/04/15/110752.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/galaxyly/aggbug/110752.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/galaxyly/" target="_blank">閾舵渤嫻風洍</a> 2007-04-15 11:06 <a href="http://www.tkk7.com/galaxyly/archive/2007/04/15/110752.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍚戜笂杞瀷涓瓙綾誨皢鑳界湅鍒扮埗綾昏瑕嗙洊瀛楁鐨勭幇璞℃帰璁?/title><link>http://www.tkk7.com/galaxyly/archive/2007/03/31/107614.html</link><dc:creator>閾舵渤嫻風洍</dc:creator><author>閾舵渤嫻風洍</author><pubDate>Sat, 31 Mar 2007 03:31:00 GMT</pubDate><guid>http://www.tkk7.com/galaxyly/archive/2007/03/31/107614.html</guid><wfw:comment>http://www.tkk7.com/galaxyly/comments/107614.html</wfw:comment><comments>http://www.tkk7.com/galaxyly/archive/2007/03/31/107614.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/galaxyly/comments/commentRss/107614.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/galaxyly/services/trackbacks/107614.html</trackback:ping><description><![CDATA[ <p> </p> <p>鎴戜滑鐭ラ亾錛屽湪瀛愮被緇ф壙鐖剁被涔嬪悗錛屽鏋滃瓙綾諱笌鐖剁被鏈夊悓鍚嶇殑瀛楁鍜屾柟娉曪紝閭d箞瀛愮被涓殑瀛愭浼氫唬鏇挎垨闅愯棌鐖剁被鐨勫瓙孌碉紝璇存槑瀛愮被瀛楁瑕嗙洊浜嗚秴綾誨瓧孌碉紝浣嗗彲浠ラ氳繃super鍏抽敭瀛楀幓璁塊棶瓚呯被瀛楁銆備絾鏄紝鍦ㄦ垜浠皢瀛愮被瀵硅薄鍚戣秴綾昏漿鍨嬬殑鏃跺欏氨浼氬彂鐢熻繖涓鎬殑鐜拌薄錛屽瓙綾誨璞″眳鐒跺彲浠ョ湅鍒扮埗綾繪浘緇忚瑕嗙洊鎺夌殑瀛楁錛佸氨姝e涓嬮潰渚嬪瓙涓竴鏍鳳細</p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #008080">聽1</span>聽<span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽A{<br /></span><span style="COLOR: #008080">聽2</span>聽<span style="COLOR: #000000">聽聽聽聽</span><span style="COLOR: #0000ff">boolean</span><span style="COLOR: #000000">聽bb聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">false</span><span style="COLOR: #000000">;<br /></span><span style="COLOR: #008080">聽3</span>聽<span style="COLOR: #000000">}<br /></span><span style="COLOR: #008080">聽4</span>聽<span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">聽5</span>聽<span style="COLOR: #000000"></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽B聽</span><span style="COLOR: #0000ff">extends</span><span style="COLOR: #000000">聽A{<br /></span><span style="COLOR: #008080">聽6</span>聽<span style="COLOR: #000000">聽聽聽聽</span><span style="COLOR: #0000ff">boolean</span><span style="COLOR: #000000">聽bb聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br /></span><span style="COLOR: #008080">聽7</span>聽<span style="COLOR: #000000">聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">int聽a=1;</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">聽8</span>聽<span style="COLOR: #008000"></span><span style="COLOR: #000000">聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽main(String[]聽args)聽{<br /></span><span style="COLOR: #008080">聽9</span>聽<span style="COLOR: #000000">聽聽聽聽聽聽聽聽B聽b聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽B();<br /></span><span style="COLOR: #008080">10</span>聽<span style="COLOR: #000000">聽聽聽聽聽聽聽聽A聽a聽;<br /></span><span style="COLOR: #008080">11</span>聽<span style="COLOR: #000000">聽聽聽聽聽聽聽聽a</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽b;<br /></span><span style="COLOR: #008080">12</span>聽<span style="COLOR: #000000">聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">---錛燂紵</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">13</span>聽<span style="COLOR: #008000"></span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽System.out.println(a.bb);<br /></span><span style="COLOR: #008080">14</span>聽<span style="COLOR: #000000">聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">---榪欏彞鍙互鐞嗚В</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">15</span>聽<span style="COLOR: #008000"></span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽System.out.println(b.bb);<br /></span><span style="COLOR: #008080">16</span>聽<span style="COLOR: #000000">聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">---錛燂紵</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">17</span>聽<span style="COLOR: #008000"></span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽System.out.println(聽((A)b).bb);<br /></span><span style="COLOR: #008080">18</span>聽<span style="COLOR: #000000">聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">----</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #008080">19</span>聽<span style="COLOR: #008000"></span><span style="COLOR: #000000">聽聽聽聽}<br /></span><span style="COLOR: #008080">20</span>聽<span style="COLOR: #000000">聽聽聽聽</span><span style="COLOR: #008000">/*</span><span style="COLOR: #008000">榪愯緇撴灉<br /></span><span style="COLOR: #008080">21</span>聽<span style="COLOR: #008000">聽聽聽聽聽*聽false<br /></span><span style="COLOR: #008080">22</span>聽<span style="COLOR: #008000">聽聽聽聽聽*聽true<br /></span><span style="COLOR: #008080">23</span>聽<span style="COLOR: #008000">聽聽聽聽聽*聽false<br /></span><span style="COLOR: #008080">24</span>聽<span style="COLOR: #008000">聽聽聽聽聽*聽</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br /></span><span style="COLOR: #008080">25</span>聽<span style="COLOR: #000000">}</span></div> <br />涓轟粈涔堜細鍙戠敓榪欐牱鐨勬儏鍐靛憿錛?br />鍏充簬榪欑鎯呭喌鐨勮В閲婂湪[緹嶿Peter van der Linden钁楃殑銆奐ust Java2銆嬩腑鏈変簡絳旀:<br />P106浠栬錛?br />聽聽聽涓瀹氳娉ㄦ剰錛氬綋鎶婂瓙綾昏漿鎹㈡垚瓚呯被鏃訛紝瀛愮被鍙互瑙佸埌鎴栬闂闅愯棌鐨勫悓鍚嶅彉閲忋侸ava鍏佽鍚嶅瓧閲嶅鐨勫師鍥犳槸錛屽厑璁稿皢鏉ユ妸鏂扮殑瀛楁鍔犲埌瓚呯被涓紝鑰屼笉褰卞搷宸茬粡浣跨敤浜嗚鍚嶅瓧鐨勭幇鏈夊瓙綾伙紝瀛愮被灝嗕細緇х畫浣跨敤鑷繁鐨勫瓧孌靛壇鏈?font color="#ff1493">闄ら潪璁╁瓙綾諱互瓚呯被瀵硅薄鐨勫艦寮忓嚭鐜幫紝鏂規硶鍙互瑕嗙洊錛屼絾鏄瓧孌典笉鑳借瑕嗙洊銆傛敞鎰忥細鏈濂戒笉瑕侀殣钘忚秴綾諱腑鐨勫瓧孌靛悕銆?br />聽聽聽聽聽</font><font color="#000000">鎵浠ユ垜浠湪榪涜鍚戜笂杞瀷鐨勬椂鍊欎竴瀹氳娉ㄦ剰錛氫笉瑕佽闂瓙綾諱腑閭d簺鈥滆鐩栤濇帀鐖剁被鐨勫瓧孌碉紙瀹冨茍娌℃湁鐪熸瑕嗙洊鎺夛紝鍦ㄥ悜涓婅漿鍨嬬殑鏃跺欏氨鍙互璁塊棶鐨勫埌錛夛紝瑕佷箞灝嗗瓙綾誨瓧孌墊敼鍚嶏紙鍦ㄤ綘鐭ラ亾鐖剁被浠g爜鐨勬儏鍐典笅錛夛紝瑕佷箞閫氳繃鏂規硶鏉ヨ闂瓧綾誨瓧孌碉紙鏂規硶鍗充嬌鍚屽悕涔熻偗瀹氳兘瑕嗙洊鎺夛級銆?/font><img src ="http://www.tkk7.com/galaxyly/aggbug/107614.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/galaxyly/" target="_blank">閾舵渤嫻風洍</a> 2007-03-31 11:31 <a href="http://www.tkk7.com/galaxyly/archive/2007/03/31/107614.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>緇ф壙甯﹀弬鏁版瀯閫犲櫒鐨勮秴綾誨茍涓旇皟鐢ㄨ嚜韜叾浠栨瀯閫犲櫒鐨勮璁?/title><link>http://www.tkk7.com/galaxyly/archive/2007/03/31/107610.html</link><dc:creator>閾舵渤嫻風洍</dc:creator><author>閾舵渤嫻風洍</author><pubDate>Sat, 31 Mar 2007 02:56:00 GMT</pubDate><guid>http://www.tkk7.com/galaxyly/archive/2007/03/31/107610.html</guid><wfw:comment>http://www.tkk7.com/galaxyly/comments/107610.html</wfw:comment><comments>http://www.tkk7.com/galaxyly/archive/2007/03/31/107610.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/galaxyly/comments/commentRss/107610.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/galaxyly/services/trackbacks/107610.html</trackback:ping><description><![CDATA[ <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">棣栧厛鏈変竴涓甫鍙傛暟鐨勮秴綾伙細聽</span> <span style="COLOR: #008000"> <br /> <img id="Codehighlighter1_32_143_Open_Image" onclick="this.style.display='none'; Codehighlighter1_32_143_Open_Text.style.display='none'; Codehighlighter1_32_143_Closed_Image.style.display='inline'; Codehighlighter1_32_143_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /> <img id="Codehighlighter1_32_143_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_32_143_Closed_Text.style.display='none'; Codehighlighter1_32_143_Open_Image.style.display='inline'; Codehighlighter1_32_143_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> </span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽SuperClass</span> <span id="Codehighlighter1_32_143_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_32_143_Open_Text"> <span style="COLOR: #000000">{聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽String聽str</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">create聽superClass聽obj</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">;聽<br /><img id="Codehighlighter1_97_140_Open_Image" onclick="this.style.display='none'; Codehighlighter1_97_140_Open_Text.style.display='none'; Codehighlighter1_97_140_Closed_Image.style.display='inline'; Codehighlighter1_97_140_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_97_140_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_97_140_Closed_Text.style.display='none'; Codehighlighter1_97_140_Open_Image.style.display='inline'; Codehighlighter1_97_140_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽SuperClass(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽num)</span> <span id="Codehighlighter1_97_140_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_97_140_Open_Text"> <span style="COLOR: #000000">{聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽System.out.println(num</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">str);聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> <span style="COLOR: #000000">聽<br /><img id="Codehighlighter1_146_202_Open_Image" onclick="this.style.display='none'; Codehighlighter1_146_202_Open_Text.style.display='none'; Codehighlighter1_146_202_Closed_Image.style.display='inline'; Codehighlighter1_146_202_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_146_202_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_146_202_Closed_Text.style.display='none'; Codehighlighter1_146_202_Open_Image.style.display='inline'; Codehighlighter1_146_202_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span> <span id="Codehighlighter1_146_202_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span> <span id="Codehighlighter1_146_202_Open_Text"> <span style="COLOR: #008000">/*</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />鐜板湪鏈変竴涓瓙綾葷戶鎵夸簡榪欎釜瓚呯被錛岄偅涔堣繖涓瓙綾誨簲璇ユ樉寮忕殑璋冪敤瓚呯被鐨勬瀯閫犲嚱鏁幫紝浠ヤ究鍒濆鍖栬嚜宸辯殑鐖剁被,濡備笅銆偮?br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /></span> <span style="COLOR: #008000">*/</span> </span> <span style="COLOR: #000000"> <br /> <img id="Codehighlighter1_237_288_Open_Image" onclick="this.style.display='none'; Codehighlighter1_237_288_Open_Text.style.display='none'; Codehighlighter1_237_288_Closed_Image.style.display='inline'; Codehighlighter1_237_288_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /> <img id="Codehighlighter1_237_288_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_237_288_Closed_Text.style.display='none'; Codehighlighter1_237_288_Open_Image.style.display='inline'; Codehighlighter1_237_288_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> </span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽SubClass聽</span> <span style="COLOR: #0000ff">extends</span> <span style="COLOR: #000000">聽SuperClass</span> <span id="Codehighlighter1_237_288_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_237_288_Open_Text"> <span style="COLOR: #000000">{聽<br /><img id="Codehighlighter1_260_285_Open_Image" onclick="this.style.display='none'; Codehighlighter1_260_285_Open_Text.style.display='none'; Codehighlighter1_260_285_Closed_Image.style.display='inline'; Codehighlighter1_260_285_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_260_285_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_260_285_Closed_Text.style.display='none'; Codehighlighter1_260_285_Open_Image.style.display='inline'; Codehighlighter1_260_285_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽SubClass(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽num)</span> <span id="Codehighlighter1_260_285_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_260_285_Open_Text"> <span style="COLOR: #000000">{聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">super</span> <span style="COLOR: #000000">(num);聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> <span style="COLOR: #000000">聽<br /><img id="Codehighlighter1_291_341_Open_Image" onclick="this.style.display='none'; Codehighlighter1_291_341_Open_Text.style.display='none'; Codehighlighter1_291_341_Closed_Image.style.display='inline'; Codehighlighter1_291_341_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_291_341_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_291_341_Closed_Text.style.display='none'; Codehighlighter1_291_341_Open_Image.style.display='inline'; Codehighlighter1_291_341_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span> <span id="Codehighlighter1_291_341_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span> <span id="Codehighlighter1_291_341_Open_Text"> <span style="COLOR: #008000">/*</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />鐜板湪瀛愮被榪樿瀹氫箟涓涓柊鐨勬瀯閫犲嚱鏁幫紝騫朵笖鍦ㄥ墠涓涓瀯閫犲嚱鏁頒腑璋冪敤榪欎釜鏂扮殑鏋勯犲嚱鏁幫紝鏇存敼濡備笅錛毬?br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /></span> <span style="COLOR: #008000">*/</span> </span> <span style="COLOR: #000000"> <br /> <img id="Codehighlighter1_376_599_Open_Image" onclick="this.style.display='none'; Codehighlighter1_376_599_Open_Text.style.display='none'; Codehighlighter1_376_599_Closed_Image.style.display='inline'; Codehighlighter1_376_599_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /> <img id="Codehighlighter1_376_599_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_376_599_Closed_Text.style.display='none'; Codehighlighter1_376_599_Open_Image.style.display='inline'; Codehighlighter1_376_599_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> </span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽SubClass聽</span> <span style="COLOR: #0000ff">extends</span> <span style="COLOR: #000000">聽SuperClass</span> <span id="Codehighlighter1_376_599_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_376_599_Open_Text"> <span style="COLOR: #000000">{聽<br /><img id="Codehighlighter1_399_463_Open_Image" onclick="this.style.display='none'; Codehighlighter1_399_463_Open_Text.style.display='none'; Codehighlighter1_399_463_Closed_Image.style.display='inline'; Codehighlighter1_399_463_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_399_463_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_399_463_Closed_Text.style.display='none'; Codehighlighter1_399_463_Open_Image.style.display='inline'; Codehighlighter1_399_463_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽SubClass(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽num)</span> <span id="Codehighlighter1_399_463_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_399_463_Open_Text"> <span style="COLOR: #000000">{聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">super</span> <span style="COLOR: #000000">(num);聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">this</span> <span style="COLOR: #000000">(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">other聽SubClass(String)</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽<br /><img id="Codehighlighter1_487_523_Open_Image" onclick="this.style.display='none'; Codehighlighter1_487_523_Open_Text.style.display='none'; Codehighlighter1_487_523_Closed_Image.style.display='inline'; Codehighlighter1_487_523_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_487_523_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_487_523_Closed_Text.style.display='none'; Codehighlighter1_487_523_Open_Image.style.display='inline'; Codehighlighter1_487_523_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽SubClass(String聽s)</span> <span id="Codehighlighter1_487_523_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_487_523_Open_Text"> <span style="COLOR: #000000">{聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽System.out.println(s);聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽<br /><img id="Codehighlighter1_567_596_Open_Image" onclick="this.style.display='none'; Codehighlighter1_567_596_Open_Text.style.display='none'; Codehighlighter1_567_596_Closed_Image.style.display='inline'; Codehighlighter1_567_596_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_567_596_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_567_596_Closed_Text.style.display='none'; Codehighlighter1_567_596_Open_Image.style.display='inline'; Codehighlighter1_567_596_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">void</span> <span style="COLOR: #000000">聽main(String[]聽args)</span> <span id="Codehighlighter1_567_596_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_567_596_Open_Text"> <span style="COLOR: #000000">{聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽SubClass();聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> <span style="COLOR: #000000">聽<br /><img id="Codehighlighter1_602_717_Open_Image" onclick="this.style.display='none'; Codehighlighter1_602_717_Open_Text.style.display='none'; Codehighlighter1_602_717_Closed_Image.style.display='inline'; Codehighlighter1_602_717_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_602_717_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_602_717_Closed_Text.style.display='none'; Codehighlighter1_602_717_Open_Image.style.display='inline'; Codehighlighter1_602_717_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span> <span id="Codehighlighter1_602_717_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span> <span id="Codehighlighter1_602_717_Open_Text"> <span style="COLOR: #008000">/*</span> <span style="COLOR: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />鐢變簬鎴戜滑鐭ラ亾鍦ㄤ竴涓被涓殑鏋勯犲嚱鏁頒腑瑕佽皟鐢ㄨ嚜宸辯殑鍏朵粬鏋勯犲嚱鏁幫紝鍙兘閫氳繃this();鐨勬柟寮忚皟鐢ㄤ竴涓紝騫朵笖瑕佹斁鍦ㄦ墍鍦ㄦ瀯閫犲嚱鏁扮殑絎竴琛岋紝浣嗘槸浣跨敤super();鏄懼紡璋冪敤涔熺埗綾誨甫鍙傛瀯閫犲嚱鏁頒篃鍙兘鏀懼湪絎竴琛岋紝閭d箞榪欐牱灝變細鍙戠敓鍐茬獊銆?br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /></span> <span style="COLOR: #008000">*/</span> </span> </div> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">鍙傝冿細聽</span> <span style="COLOR: #008000"> <br /> <img id="Codehighlighter1_31_141_Open_Image" onclick="this.style.display='none'; Codehighlighter1_31_141_Open_Text.style.display='none'; Codehighlighter1_31_141_Closed_Image.style.display='inline'; Codehighlighter1_31_141_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /> <img id="Codehighlighter1_31_141_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_31_141_Closed_Text.style.display='none'; Codehighlighter1_31_141_Open_Image.style.display='inline'; Codehighlighter1_31_141_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> </span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽SuperClass聽</span> <span id="Codehighlighter1_31_141_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_31_141_Open_Text"> <span style="COLOR: #000000">{聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />String聽str</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">create聽superClass聽obj</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">;聽聽<br /><img id="Codehighlighter1_92_137_Open_Image" onclick="this.style.display='none'; Codehighlighter1_92_137_Open_Text.style.display='none'; Codehighlighter1_92_137_Closed_Image.style.display='inline'; Codehighlighter1_92_137_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_92_137_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_92_137_Closed_Text.style.display='none'; Codehighlighter1_92_137_Open_Image.style.display='inline'; Codehighlighter1_92_137_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽SuperClass(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽num)</span> <span id="Codehighlighter1_92_137_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_92_137_Open_Text"> <span style="COLOR: #000000">{聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽System.out.println(num</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000">str);聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> <span style="COLOR: #000000">聽<br /><img id="Codehighlighter1_185_536_Open_Image" onclick="this.style.display='none'; Codehighlighter1_185_536_Open_Text.style.display='none'; Codehighlighter1_185_536_Closed_Image.style.display='inline'; Codehighlighter1_185_536_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_185_536_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_185_536_Closed_Text.style.display='none'; Codehighlighter1_185_536_Open_Image.style.display='inline'; Codehighlighter1_185_536_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽SubClass聽</span> <span style="COLOR: #0000ff">extends</span> <span style="COLOR: #000000">聽SuperClass聽</span> <span id="Codehighlighter1_185_536_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_185_536_Open_Text"> <span style="COLOR: #000000">{聽<br /><img id="Codehighlighter1_208_277_Open_Image" onclick="this.style.display='none'; Codehighlighter1_208_277_Open_Text.style.display='none'; Codehighlighter1_208_277_Closed_Image.style.display='inline'; Codehighlighter1_208_277_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_208_277_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_208_277_Closed_Text.style.display='none'; Codehighlighter1_208_277_Open_Image.style.display='inline'; Codehighlighter1_208_277_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽SubClass(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽num)</span> <span id="Codehighlighter1_208_277_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_208_277_Open_Text"> <span style="COLOR: #000000">{聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">super</span> <span style="COLOR: #000000">(num);聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽sub(num,</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">other聽Subclass(String)</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽聽<br /><img id="Codehighlighter1_310_363_Open_Image" onclick="this.style.display='none'; Codehighlighter1_310_363_Open_Text.style.display='none'; Codehighlighter1_310_363_Closed_Image.style.display='inline'; Codehighlighter1_310_363_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_310_363_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_310_363_Closed_Text.style.display='none'; Codehighlighter1_310_363_Open_Image.style.display='inline'; Codehighlighter1_310_363_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽SubClass(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽num,String聽s)</span> <span id="Codehighlighter1_310_363_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_310_363_Open_Text"> <span style="COLOR: #000000">{聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">super</span> <span style="COLOR: #000000">(num);聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽System.out.println(s);聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽</span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">-------------聽</span> <span style="COLOR: #008000"> <br /> <img id="Codehighlighter1_419_457_Open_Image" onclick="this.style.display='none'; Codehighlighter1_419_457_Open_Text.style.display='none'; Codehighlighter1_419_457_Closed_Image.style.display='inline'; Codehighlighter1_419_457_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /> <img id="Codehighlighter1_419_457_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_419_457_Closed_Text.style.display='none'; Codehighlighter1_419_457_Open_Image.style.display='inline'; Codehighlighter1_419_457_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> </span> <span style="COLOR: #000000">聽聽聽SubClass聽sub(</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000">聽num,String聽s)</span> <span id="Codehighlighter1_419_457_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_419_457_Open_Text"> <span style="COLOR: #000000">{聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽SubClass(num,s);聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽<br /><img id="Codehighlighter1_501_532_Open_Image" onclick="this.style.display='none'; Codehighlighter1_501_532_Open_Text.style.display='none'; Codehighlighter1_501_532_Closed_Image.style.display='inline'; Codehighlighter1_501_532_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_501_532_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_501_532_Closed_Text.style.display='none'; Codehighlighter1_501_532_Open_Image.style.display='inline'; Codehighlighter1_501_532_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">void</span> <span style="COLOR: #000000">聽main(String[]聽args)</span> <span id="Codehighlighter1_501_532_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_501_532_Open_Text"> <span style="COLOR: #000000">{聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽SubClass(</span> <span style="COLOR: #000000">1</span> <span style="COLOR: #000000">);聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span> </span> <span style="COLOR: #000000">聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> </div> <img src ="http://www.tkk7.com/galaxyly/aggbug/107610.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/galaxyly/" target="_blank">閾舵渤嫻風洍</a> 2007-03-31 10:56 <a href="http://www.tkk7.com/galaxyly/archive/2007/03/31/107610.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏充簬鍚嶇О灞忚斀璁ㄨhttp://www.tkk7.com/galaxyly/archive/2007/03/31/107609.html閾舵渤嫻風洍閾舵渤嫻風洍Sat, 31 Mar 2007 02:53:00 GMThttp://www.tkk7.com/galaxyly/archive/2007/03/31/107609.htmlhttp://www.tkk7.com/galaxyly/comments/107609.htmlhttp://www.tkk7.com/galaxyly/archive/2007/03/31/107609.html#Feedback0http://www.tkk7.com/galaxyly/comments/commentRss/107609.htmlhttp://www.tkk7.com/galaxyly/services/trackbacks/107609.html
publicclass聽SuperClass聽{聽
publicvoid聽method(){聽
System.out.println(
"super聽method()聽worked.");聽
}

publicvoid聽method(int聽a){聽
System.out.println(
"super聽method(int)聽worked");聽
}

publicvoid聽method(String聽s){聽
System.out.println(
"super聽method(string)聽worked");聽
}

}

//------------sub---------------聽
publicclass聽SubClass聽extends聽SuperClass聽{聽
聽聽
publicvoid聽method(){聽
聽聽System.out.println(
"subclass聽method()聽worked");聽
聽聽}

聽聽
publicvoid聽method(int聽a){聽
聽聽
super.method(a);聽
聽聽}

聽聽
publicvoid聽method(char聽c){聽
聽聽System.out.println(
"subclass聽method(char)聽worked");聽
聽聽}

}

//------------run---------------聽
publicclass聽Test聽{聽
publicstaticvoid聽run(SuperClass聽a){聽
a.method();聽
a.method(
1);聽
a.method(
"string");聽
}

publicstaticvoid聽main(String[]聽args)聽{聽
run(
new聽SubClass());聽
new聽SubClass().method('r');聽
}

}

//=============END===============聽
subclass聽method()聽worked聽
super聽method(int)聽worked聽
super聽method(string)聽worked聽
subclass聽method(
char)聽worked聽
//=============END===============聽



閾舵渤嫻風洍 2007-03-31 10:53 鍙戣〃璇勮
]]>
瀛︿範SWING澶翠竴閬紒http://www.tkk7.com/galaxyly/archive/2006/07/08/57218.html閾舵渤嫻風洍閾舵渤嫻風洍Fri, 07 Jul 2006 16:37:00 GMThttp://www.tkk7.com/galaxyly/archive/2006/07/08/57218.htmlhttp://www.tkk7.com/galaxyly/comments/57218.htmlhttp://www.tkk7.com/galaxyly/archive/2006/07/08/57218.html#Feedback0http://www.tkk7.com/galaxyly/comments/commentRss/57218.htmlhttp://www.tkk7.com/galaxyly/services/trackbacks/57218.html 鍙戠幇 swing 涓鎺т歡鐨勫竷灞寰堥夯鐑︼紝瑕佹兂鏁翠釜濂界湅鐨勭晫闈㈢‘瀹炴槸浠剁儲浜虹殑浜嬫儏錛屾垜鍋氫簡涓涓畝鍗曠殑鐣岄潰錛屼唬鐮佸涓嬶細

package 聽gui;

import 聽java.awt.BorderLayout;
import 聽java.awt.GridLayout;
import 聽javax.swing.JButton;
import 聽javax.swing.JFrame;
import 聽javax.swing.JLabel;
import 聽javax.swing.JPanel;
import 聽javax.swing.JTextField;
import 聽javax.swing.JToolBar;
public class 聽UserGui聽 extends 聽JFrame聽{聽
聽聽聽聽
static final long 聽serialVersionUID聽 = 1 ;
聽聽聽聽JPanel聽infBar;
聽聽聽聽JButton[]聽button聽
= new 聽JButton[ 6 ];
聽聽聽聽JToolBar聽tb;
聽聽聽聽
// 聽----------
聽聽聽聽JLabel聽idL聽 = new 聽JLabel( " 宸ュ彿錛?/span> " );
聽聽聽聽JLabel聽nameL聽
= new 聽JLabel( " 濮撳悕錛?/span> " );
聽聽聽聽JLabel聽moneyL聽
= new 聽JLabel( " 瀛﹀巻錛?/span> " );
聽聽聽聽JLabel聽workL聽
= new 聽JLabel( " 鑱岀О錛?/span> " );
聽聽聽聽JTextField聽idT聽
= new 聽JTextField( 22 );
聽聽聽聽JTextField聽nameT聽
= new 聽JTextField( 22 );
聽聽聽聽JTextField聽moneyT聽
= new 聽JTextField( 22 );
聽聽聽聽JTextField聽workT聽
= new 聽JTextField( 22 );
聽聽聽聽
// 聽--------------------------------
聽聽聽聽 public 聽UserGui(String聽name)聽{
聽聽聽聽聽聽聽聽
super (name);
聽聽聽聽聽聽聽聽setLayout(
new 聽BorderLayout());
聽聽聽聽聽聽聽聽setDefaultCloseOperation(EXIT_ON_CLOSE);
聽聽聽聽聽聽聽聽setSize(
290 ,聽 200 );
聽聽聽聽聽聽聽聽setResizable(
false );
聽聽聽聽聽聽聽聽setToolBar();
聽聽聽聽聽聽聽聽setInfBar();
聽聽聽聽聽聽聽聽add(infBar,聽BorderLayout.CENTER);
聽聽聽聽聽聽聽聽add(tb,聽BorderLayout.NORTH);
聽聽聽聽聽聽聽聽setVisible(
true );
聽聽聽聽}
聽聽聽聽
// 聽--------------------------------
聽聽聽聽 public void 聽setToolBar()聽{
聽聽聽聽聽聽聽聽tb聽
= new 聽JToolBar();
聽聽聽聽聽聽聽聽tb.setFloatable(
false );
聽聽聽聽聽聽聽聽String[]聽t1聽
= 聽{聽 " 鏌ヨ " ,聽 " 娣誨姞 " ,聽 " 淇敼 " ,聽 " 鍒犻櫎 " ,聽 " 搴旂敤鏇存敼 " ,聽 " 閫鍑虹郴緇?/span> " 聽};
聽聽聽聽聽聽聽聽
for 聽( int 聽i聽 = 0 ;聽i聽 < 6 ;聽i ++ )聽{
聽聽聽聽聽聽聽聽聽聽聽聽button[i]聽
= new 聽JButton(t1[i]);
聽聽聽聽聽聽聽聽聽聽聽聽tb.add(button[i]);
聽聽聽聽聽聽聽聽}
聽聽聽聽}
聽聽聽聽
public void 聽setInfBar()聽{
聽聽聽聽聽聽聽聽infBar聽
= new 聽JPanel();
聽聽聽聽聽聽聽聽infBar.setLayout(
new 聽BorderLayout());
聽聽聽聽聽聽聽聽JPanel聽left聽
= new 聽JPanel();
聽聽聽聽聽聽聽聽left.setLayout(
new 聽GridLayout( 4 ,聽 1 ));
聽聽聽聽聽聽聽聽JPanel聽right聽
= new 聽JPanel();
聽聽聽聽聽聽聽聽right.setLayout(
new 聽GridLayout( 4 ,聽 1 ));
聽聽聽聽聽聽聽聽infBar.add(left,聽BorderLayout.WEST);
聽聽聽聽聽聽聽聽infBar.add(right,聽BorderLayout.EAST);
聽聽聽聽聽聽聽聽left.add(idL);
聽聽聽聽聽聽聽聽left.add(nameL);
聽聽聽聽聽聽聽聽left.add(moneyL);
聽聽聽聽聽聽聽聽left.add(workL);
聽聽聽聽聽聽聽聽right.add(idT);
聽聽聽聽聽聽聽聽right.add(nameT);
聽聽聽聽聽聽聽聽right.add(moneyT);
聽聽聽聽聽聽聽聽right.add(workT);
聽聽聽聽}
聽聽聽聽
// 聽--------------------------------
聽聽聽聽 public static void 聽main(String[]聽args)聽{
聽聽聽聽聽聽聽聽UserGui聽ug聽
= new 聽UserGui( " 浜轟簨妗f綆$悊緋葷粺鐣岄潰 " );
聽聽聽聽}聽聽聽聽
}


閾舵渤嫻風洍 2006-07-08 00:37 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 免费看香港一级毛片| 亚洲精品中文字幕无码蜜桃| 日本一区二区在线免费观看 | 久久亚洲sm情趣捆绑调教| 久久受www免费人成_看片中文| 色综合久久精品亚洲国产| 亚洲中文久久精品无码| 97热久久免费频精品99| h视频免费高清在线观看| 亚洲最大免费视频网| 亚洲国产一区视频| 69式互添免费视频| 人人公开免费超级碰碰碰视频| 亚洲日韩国产精品无码av| 亚洲国产精品激情在线观看 | 日本免费网址大全在线观看| 男女猛烈激情xx00免费视频| 亚洲毛片在线免费观看| 亚洲毛片av日韩av无码| 成年人免费观看视频网站| 精品亚洲永久免费精品| 含羞草国产亚洲精品岁国产精品| 久久久久亚洲AV无码专区体验| 免费人妻av无码专区| 91嫩草国产在线观看免费| 国产真人无码作爱视频免费| 男性gay黄免费网站| 亚洲综合偷自成人网第页色| 亚洲AV本道一区二区三区四区| 免费A级毛片无码久久版| 一区二区无码免费视频网站 | 国产成人精品123区免费视频| 一级毛片成人免费看免费不卡| 有色视频在线观看免费高清在线直播| 亚洲AV无码成人专区| 亚洲色图在线播放| 国产亚洲一区二区三区在线| 亚洲不卡AV影片在线播放| 在线观看永久免费视频网站| 免费精品国偷自产在线在线| 99久久人妻精品免费二区|