锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品亚洲片在线,91天堂素人精品系列全集亚洲 ,亚洲av日韩av永久无码电影http://m.tkk7.com/sinbadblue/category/285.htmlSMILE ALL DAY LONG zh-cnFri, 02 Mar 2007 06:42:09 GMTFri, 02 Mar 2007 06:42:09 GMT60Installation and Configuration for Lomboz http://m.tkk7.com/sinbadblue/archive/2005/04/03/2772.htmlBlue KongBlue KongSun, 03 Apr 2005 01:52:00 GMThttp://m.tkk7.com/sinbadblue/archive/2005/04/03/2772.htmlhttp://m.tkk7.com/sinbadblue/comments/2772.htmlhttp://m.tkk7.com/sinbadblue/archive/2005/04/03/2772.html#Feedback0http://m.tkk7.com/sinbadblue/comments/commentRss/2772.htmlhttp://m.tkk7.com/sinbadblue/services/trackbacks/2772.htmldoc carefullly on  objectlearn.com

Tips 1錛?FONT face="Arial, Helvetica, sans-serif" size=2>EMF MUST BE INSTALLED PRIOR TO USING LOMBOZ.
Using google, you'll find many article about the Installation of Lomboz. But many of them didn't talk about the EMF. I haven't used Lomboz 2.X on eclipse 2.X, perhaps that old version didn't need EMF. Now, Lomboz v3.x uses models based on EMF. So EMF must be installed with Lomboz.

Tips 2: IT IS VERY IMPORTANT THAT YOU CLICK APPLY 
Your change will be taken into account only after this. It's very strange -_-b

BTW, the speed for exploring websites abroad is very very slow these days. For example , eclipse.org, sourceforge.net and so on.  My ISP is Shanghai's Oriental Cable Network.

Blue Kong 2005-04-03 09:52 鍙戣〃璇勮
]]>
Pebble , another weblog written in Javahttp://m.tkk7.com/sinbadblue/archive/2005/03/11/1951.htmlBlue KongBlue KongFri, 11 Mar 2005 08:11:00 GMThttp://m.tkk7.com/sinbadblue/archive/2005/03/11/1951.htmlhttp://m.tkk7.com/sinbadblue/comments/1951.htmlhttp://m.tkk7.com/sinbadblue/archive/2005/03/11/1951.html#Feedback1http://m.tkk7.com/sinbadblue/comments/commentRss/1951.htmlhttp://m.tkk7.com/sinbadblue/services/trackbacks/1951.html



Blue Kong 2005-03-11 16:11 鍙戣〃璇勮
]]>
Reading "Thinking in Java" #5http://m.tkk7.com/sinbadblue/archive/2005/01/27/742.htmlBlue KongBlue KongThu, 27 Jan 2005 00:58:00 GMThttp://m.tkk7.com/sinbadblue/archive/2005/01/27/742.htmlhttp://m.tkk7.com/sinbadblue/comments/742.htmlhttp://m.tkk7.com/sinbadblue/archive/2005/01/27/742.html#Feedback0http://m.tkk7.com/sinbadblue/comments/commentRss/742.htmlhttp://m.tkk7.com/sinbadblue/services/trackbacks/742.html//浠?A >鑰佸鎼瘒榪囨潵錛岀湅鐪嬫帓鐗堜笌鏄劇ず鏁堟灉濡備綍銆?/P>

 

6. Reusing Classes

Java緙栬瘧鍣ㄥ茍涓嶄細緇欎換浣時eference浜х敓緙虹渷瀵硅薄錛岃繖鏍峰氨閬垮厤浜嗗ぇ澶氭暟鎯呭喌涓嬬殑涓嶅繀瑕佺殑璐熸媴銆傚垵濮嬪寲闇瑕佺殑瀵硅薄鍙互鍦ㄤ互涓嬪湴鐐癸細

錛戯紝瀵硅薄瀹氫箟澶勩傜敱浜庣被鍒濆鍖栭『搴忕殑瑙勫垯錛岃繖鏍峰仛鍙互淇濊瘉浠ユ鏂規(guī)硶鍒濆鍖栫殑瀵硅薄灝嗕細鍦ㄦ瀯閫犲嚱鏁拌璋冪敤鍓嶅畬鎴愬垵濮嬪寲銆?
錛掞紝鏋勯犲嚱鏁板唴閮ㄣ?
錛擄紝褰撻渶瑕佷嬌鐢ㄨ瀵硅薄鏃訛紝榪欑鏂瑰紡琚О涓猴紙緙撳紡鍒濆鍖栵級lazy initialization銆傚鏋滀竴涓璞″茍闈炴繪槸蹇呴』錛岄偅涔堣繖縐嶆柟寮忓彲浠ュ噺灝戦澶栬礋鎷呫?

鍏充簬娓呯悊鍔ㄤ綔錛岃娉ㄦ剰鐨勬槸欏哄簭錛氶鍏堟墽琛屽綋鍓嶇被鐨勬墍鏈夋竻鐞嗗姩浣滐紙鍏朵腑嬈″簭鍜岀敓鎴愭搴忕浉鍙嶏級錛岃屽悗鍐嶈皟鐢╞ase class鐨勬竻鐞嗗嚱鏁般傚甯︿竴鍙ワ紝闄や簡鍐呭瓨錛屾渶濂芥案榪滀笉瑕佺浉淇″瀮鍦懼洖鏀舵満鍒躲?/P>

Final data

Bruce鍦ㄨ繖閮ㄥ垎璇達細Java涓璮inal淇グ瀵逛簬鍩烘湰綾誨瀷鍜屽璞″紩鐢紙object reference錛夎岃█錛屾剰涔夋槸涓嶅悓鐨勩傜敤浜庡熀鏈被鍨嬫椂錛宖inal璁﹙alue錛堟暟鍊鹼級淇濇寔涓嶅彉銆傜敤浜巓bject reference鏃訛紝final璁﹔eference淇濇寔涓嶅彉錛屼絾瀵硅薄鏈韓鐨勫唴瀹瑰嵈鏄彲浠ユ洿鍔ㄧ殑鎭躲侸ava騫舵湭鎻愪緵璁╀換浣曞璞′繚鎸佷笉鍙樼殑鏈哄埗錛岃櫧鐒跺彲浠ヨ嚜宸辯紪鍐欏叿鏈変繚鎸佷笉鍙樻晥鏋滅殑class銆傜壒鍒彁閱掞紝array涔熸槸瀵硅薄銆?

鎴戣璇寸殑鏄紝鎴戞病鍙戠幇final鍦ㄥ熀鏈被鍨嬩笌瀵硅薄寮曠敤鐨勬剰涔夋湁浣曚笉鍚屻俧inal閮芥槸璁╀袱鑰呯殑value淇濇寔涓嶅彉錛屽熀鏈被鍨嬬殑value灝辨槸瀵瑰簲鐨勬暟鍊兼垨鑰卋ool鍊箋傝屽璞″紩鐢ㄧ殑value鍦ㄧ悊瑙d笂鍙互瑙i噴涓烘寚鍚憃bject鐨勫湴鍧銆傚綋鐒訛紝榪欓噷浼間箮瀵逛簬Java鐨勫簳灞傚疄鐜板仛浜嗗亣璁捐屾垜紜疄涔熸病緇嗙┒榪嘕ava濡備綍瀹炵幇object reference鐨勩備絾鏄紝灝盝ava璇硶鍙婃垜涓漢鐨勪綋浼氳岃█錛屾垜瑙夊緱榪欐槸寰堝ソ鐨勪竴縐嶇悊瑙f柟寮忋?

Blank finals

Java鍏佽鎶婃暟鎹垚鍛樺0鏄庝負final鍗翠笉璧嬩簣鍒濆鍊箋傚綋鐒訛紝final淇グ鐨勬暟鎹垚鍛樺繀欏誨湪鍏惰浣跨敤鍓嶅畬鎴愬垵濮嬪寲錛岃繖涓鐐圭敱緙栬瘧鍣ㄤ繚璇併傝繖涓壒鎬ц鎴戜滑鍙互鎶婃煇涓暟鎹垚鍛樺0鏄庝負final鍏鋒湁涓嶅彉鐨勭壒鎬э紝鍗村湪姣忎釜瀵硅薄涓負涓嶅悓鐨勫箋?

Final arguments

Java涓繕鍙互鎶妋ethod鐨刟rguments澹版槑涓篺inal錛屾剰涔変笉鍙橈紝鍙槸涓嶅彉鐗規(guī)х殑鑼冨洿浠呬粎鍦ㄦmethod鍐呫傚浜庡璞″紩鐢紝鍗蟲槸鍦ㄦmethod鍐呮嫢鏈夋瀵硅薄鐨勪竴涓笉鍙彉鏇寸殑寮曠敤錛岃屼笉褰卞搷姝ゅ璞″瓨鍦ㄥ叾浠栭潪final鐨勫紩鐢ㄣ?

Final method

鏈変袱涓師鍥犳妸涓涓猰ethod淇グ鎴恌inal銆傜涓錛屽浜庣被A涓殑鏌愪釜method錛屼綘甯屾湜鍦ㄧ被A鎵鏈夊瓙綾諱腑姝ゆ柟娉曠殑琛ㄧ幇涓嶅彉錛屽嵆姝ゆ柟娉曚笉鍙瑕嗗啓錛坥verriding錛夈傜浜岋紝澶勪簬鏁堢巼鑰冭檻錛屽洜涓虹紪璇戝櫒浼氬皾璇曟妸涓嶅お闀跨殑final method鏀逛負inner method銆傝孊ruce Eckel寤鴻鎴戜滑涓嶈鐩鎬俊緙栬瘧鍣ㄧ殑鏅哄晢錛屽彧鍦ㄧ‘瀹炲浜庤璁$殑鑰冭檻闇瑕佹椂錛屾墠鎶妋ethod淇グ涓篺inal銆?

final & private

private鐨刴ethod瀵逛簬瀛愮被鏄笉鍙鐨勶紝鑷劧涔熸棤娉曡鍐欙紙overriding錛夈備技涔庯紝private闅愬惈浜唂inal錛熷鏋滀竴涓嚱鏁板凡緇忔槸private錛屼技涔巉inal淇グ涓庡惁閮芥棤鍏崇揣瑕侊紵 
棣栧厛錛岃繖涓や釜鍋囪錛屽墠鑰呴敊璇紝鍚庤呮紜傚洜涓簆rivate鐨刴ethod瀵逛簬瀛愮被鏄笉鍙鐨勶紝 鎵浠ュ浜庡瓙綾昏岃█濡傛鐨勫嚱鏁板氨濡傚悓鏄埗綾諱腑鐨勪竴孌墊櫘閫氫唬鐮併傚鏋滄鏃跺湪瀛愮被涓0鏄庝竴涓笌鐖剁被涓殑private method鍚屽悕鐨勫嚱鏁幫紝緙栬瘧鍣ㄦ槸鍏佽鐨勩傜劧鑰岋紝娉ㄦ剰錛屾鏃跺彧鏄湪榪欎釜緇ф壙浣撶郴涓姞鍏ヤ簡涓涓柊鍑芥暟鑰屽凡錛屽茍闈炴槸涓涓鍐欍傚洜涓鴻鍐欙紙overriding錛夌殑鍓嶆彁鏄紝琚鍐欑殑鍑芥暟鏄彲瑙侊紝鏄埗綾葷殑瀵瑰鐨勭晫闈€傝嚦浜庡private鍑芥暟鍐嶅姞final淇グ錛岀紪璇戝櫒鏄厑璁哥殑銆備絾姣棤鎰忎箟錛屽洜涓簆rivate鐨勫嚱鏁板浜庡瓙綾諱笉鍙錛屾墍浠ヤ篃灝辨棤闇澹版槑鏄惁鍏佽瑕嗗啓(overriding)銆?

涓嬮潰榪樻槸璐存浠g爜鏉ヨВ閲婏細

/*
 * Created on 2004-11-30
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 
*/

package com.smilereader.test;

/**
 * @author Sinbadblue Kong
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 
*/

class Treasure {
    
    
private final void f(){
        System.
out.println("Treasure.f()");
    }

    
    
private void g(){
        System.
out.println("Treasure.g()");        
    }

    
    final 
void e(){
        System.
out.println("Treasure.e()");
    }

    
}


/*
 * Created on 2004-12-5
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 
*/

package com.smilereader.test;

/**
 * @author Sinbadblue Kong
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 
*/

class Gemstone extends Treasure {
    
    
//    add a new method Gemstone.f(), it isn't an overriding
    public final void f(){
        System.
out.println("Gemstone.f()");
        
    }

    
    
//  add a new method Gemstone.g(), it isn't an overriding
    public void g(){
        System.
out.println("Gemstone.g()");
    }

 
    
//can't overriding Treasure.e()
//    public void e(){
//        System.out.println("Gemstone.e()");
//    }

}


鎴戣寰桱ava鐨勭紪璇戝櫒鍦ㄦ澶勭殑澶勭悊涓嶅お鍚堥傦紝瀹規(guī)槗瀵艱嚧娣鋒穯銆傚鏋滃浜巔rivate 涓?final淇グ鍋氫簰鏂ュ鐞嗭紝鎴戜釜浜鴻寰椾細鏄瘮杈冨悎閫傜殑鍙堝鏄撶悊瑙g殑鏂瑰紡銆?



Blue Kong 2005-01-27 08:58 鍙戣〃璇勮
]]>
Open Closed Principle (OCP)http://m.tkk7.com/sinbadblue/archive/2005/01/25/714.htmlBlue KongBlue KongTue, 25 Jan 2005 15:25:00 GMThttp://m.tkk7.com/sinbadblue/archive/2005/01/25/714.htmlhttp://m.tkk7.com/sinbadblue/comments/714.htmlhttp://m.tkk7.com/sinbadblue/archive/2005/01/25/714.html#Feedback0http://m.tkk7.com/sinbadblue/comments/commentRss/714.htmlhttp://m.tkk7.com/sinbadblue/services/trackbacks/714.html鍘誨勾鐢ㄨ嫳鏂囧啓BLOG鏃剁殑甯栧瓙錛岃嚜宸辮漿鑷繁錛屽彨鑷漿 :P

The Open Closed Principle (OCP) states that we should be able to add new features to our system without having to modify our set of preexisting classes. The following Class Diagram shows that how to design the relationship between the classes so as to adhere the OCP under certain circumstance:

The User class has a relationship to the UserType abstract class. The simple sample design shows that it adheres one of the tenets of OCP:鈥渢o reduce the coupling between classes to the abstract level. Instead of creating relationships between two concrete classes, we create relationships between a concrete and an abstract class ,or in Java, between a concrete class and an interface.

Principles should be reminded again and again. ^_^



Blue Kong 2005-01-25 23:25 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 一级毛片在线观看免费| 中文字幕乱码免费视频| 精品无码国产污污污免费网站 | 美国毛片亚洲社区在线观看 | 四虎永久免费影院| 亚洲VA成无码人在线观看天堂| 成年网在线观看免费观看网址| 免费国产在线观看| 一区二区三区免费电影| 亚洲乱亚洲乱妇无码麻豆| 黄页免费在线观看| 亚洲成无码人在线观看| 免费无码精品黄AV电影| 国产精品亚洲专区无码牛牛| 亚洲精品国产福利一二区| 最近更新免费中文字幕大全| 亚洲国产精品线在线观看| 免费在线观看视频网站| 亚洲日韩国产欧美一区二区三区 | 国产成人AV片无码免费| 亚洲国产高清美女在线观看| 欧美最猛性xxxxx免费| 污网站在线免费观看| 亚洲精品国精品久久99热一| 日本最新免费网站| 看Aⅴ免费毛片手机播放| 伊人久久亚洲综合| 爱情岛论坛免费视频| 亚洲免费人成在线视频观看| 免费能直接在线观看黄的视频| 亚洲精品无码久久久久A片苍井空| 国产亚洲精品免费| 日韩电影免费在线观看中文字幕| 亚洲伊人久久大香线蕉结合| 亚洲无线一二三四区手机| 蜜桃视频在线观看免费视频网站WWW | 777成影片免费观看| 国产精品亚洲一区二区无码| 亚洲成AV人片在线观看ww| 午夜影视在线免费观看| 三级黄色免费观看|