<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    JUST DO IT ~

    我只想當個程序員

         摘要: (一)DotNet中的版本組成
    DotNet中的版本由4個物理號碼組成,如圖(一)
    在程序集里面,我們可以通過加上AssemblyVersion特性來設置它,
    如[assembly: AssemblyVersion("2.0.2.11")]
    (二) GAC:
    計算機范圍內的代碼緩存,它存儲專門安裝的程序集,這些程序集由計算機上的許多應用程序共享。在全局程序集緩存中部署的應用程序必須具有強名稱,一個程序集如果注冊到了GAC里,被其他程序集合引用的時候,將不會拷貝副本到引用的程序目錄中。 (本文只討論注冊到GAC中的程序集)  閱讀全文
    posted @ 2008-09-15 12:14 小高 閱讀(625) | 評論 (0)編輯 收藏
         摘要: 外圍報盤程序 .net 調用
    傳遞的參數 varchar2 100   閱讀全文
    posted @ 2008-09-10 10:58 小高 閱讀(5768) | 評論 (0)編輯 收藏
         摘要:   閱讀全文
    posted @ 2008-09-08 08:03 小高 閱讀(683) | 評論 (0)編輯 收藏
         摘要:   閱讀全文
    posted @ 2008-09-01 10:44 小高 閱讀(211) | 評論 (0)編輯 收藏
         摘要: try{
    = () 強轉
    }catch (){
    }


    string s = someObject as string;
    if (s != null)
    {
    // someObject is a string.
    }




      閱讀全文
    posted @ 2008-08-31 09:27 小高 閱讀(1672) | 評論 (0)編輯 收藏
         摘要:   閱讀全文
    posted @ 2008-08-30 23:25 小高 閱讀(826) | 評論 (0)編輯 收藏
         摘要:   閱讀全文
    posted @ 2008-08-29 10:27 小高 閱讀(193) | 評論 (0)編輯 收藏

    摘 :  http://hacker.cnblogs.com/archive/2004/08/10/31774.aspx

    對virtual的說明是對的:(它一般用在基類中,子類中用override)
    1.無virtual時,編譯期就確定方法的類型了。也即:無法實現多態了。
    2.有vitual時,方法在運行時確定類型。可以實現多態,只要子類override基類的vitual方法。(也就是樓主的第2點)。

    實現java  動態調用 

     
    另外取個方法 與原來無關.


    對于new沒有說清楚:
    new與virtual并沒有必然的聯系。從字面上看,new聲明的方法是一個“新”方法,與基類完全沒有關系(雖然不幸與基類的某個方法同名同參)。也即:通過向上轉型(如:基類 引用名=new 子類())得到的引用將無法看到子類中new出來的方法。所以會出現樓主第3點中的結果。

     

     







    using System; 

    public class ClassFather 



    public string s1; 

    // virtual public void VirFun() 

    public void VirFun() 

    { Console.WriteLine( 
    "base  classfather virFun:"+ s1 );} 




    public class ClassBoy : ClassFather 



    public new void VirFun() 

    base.VirFun();} 




    public class ClassGirl : ClassFather 



    public new void VirFun() 



    base.VirFun(); 

    Console.WriteLine( s1 ); 






    public class Test 



    public static void Main() 



    ClassFather a 
    = new ClassFather(); 

    a.s1 
    = "father"

    a.VirFun(); 


    ClassFather b 
    = new ClassBoy(); 

    b.s1 
    = "boy"

    b.VirFun(); 


    ClassFather c 
    = new ClassGirl(); 

    c.s1 
    = "girl"

    c.VirFun(); 








    using System; 


    public class ClassFather 



    public string s1; 

    virtual public void VirFun() 

    { Console.WriteLine( "ClassFather  virfun()(: "+ s1 );} 

    }
     


    public class ClassBoy : ClassFather 



    public override void VirFun() 

    {
    Console.WriteLine( 
    "ClassBoy  virfun() : "+ s1 );   // base.VirFun();} 

    }
     


    public class ClassGirl : ClassFather 



    public new void VirFun() 



    //base.VirFun(); 

    //Console.WriteLine( s1 ); 

     Console.WriteLine( 
    "ClassGirl new  virfun() : "+ s1 );

    }
     

    }
     


    public class Test 



    public static void Main() 



    ClassFather a 
    = new ClassFather(); 

    a.s1 
    = "father"

    a.VirFun(); 


    ClassFather b 
    = new ClassBoy(); 

    b.s1 
    = "boy"

    b.VirFun(); 


    ClassFather c 
    = new ClassGirl(); 

    c.s1 
    = "girl"

    c.VirFun(); 

    }
     

    }



    posted @ 2008-08-29 08:26 小高 閱讀(233) | 評論 (0)編輯 收藏
         摘要: 沒整理  閱讀全文
    posted @ 2008-08-09 19:39 小高| 編輯 收藏
         摘要:   閱讀全文
    posted @ 2008-08-03 19:00 小高 閱讀(2322) | 評論 (6)編輯 收藏
         摘要: 在腳本中用
    SQL> set define off;
    是把默認的&綁定變量的功能取消, 可以把'&字符'當成普通字符處理
    SQL> set define on;
    打開&綁定變量的功能, &后面的字符串當變量使用.
    SQL> show define;  閱讀全文
    posted @ 2008-08-01 14:47 小高 閱讀(2725) | 評論 (0)編輯 收藏
         摘要:   閱讀全文
    posted @ 2008-07-15 18:42 小高 閱讀(491) | 評論 (0)編輯 收藏
         摘要:   閱讀全文
    posted @ 2008-06-25 23:20 小高 閱讀(1054) | 評論 (0)編輯 收藏
         摘要: 解決 : 程序在中文目錄中
    換到根目錄 下面 路徑中沒有中文試試.
      閱讀全文
    posted @ 2008-06-23 19:38 小高 閱讀(369) | 評論 (0)編輯 收藏
         摘要:   閱讀全文
    posted @ 2008-06-21 17:58 小高 閱讀(482) | 評論 (0)編輯 收藏
    僅列出標題
    共20頁: First 上一頁 12 13 14 15 16 17 18 19 20 下一頁 

    導航

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    統計

    常用鏈接

    留言簿(3)

    隨筆分類(352)

    收藏夾(19)

    關注的blog

    手冊

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲资源在线观看| 亚洲va在线va天堂va888www| 亚洲一区在线观看视频| 五月亭亭免费高清在线| 亚洲女人影院想要爱| 7723日本高清完整版免费| 亚洲国产成人久久三区| 四虎在线免费播放| 色欲aⅴ亚洲情无码AV| 亚洲第一区精品日韩在线播放| 免费精品久久久久久中文字幕| 亚洲国产成人爱av在线播放| 一个人看的免费视频www在线高清动漫 | 免费观看男人免费桶女人视频| 亚洲日韩亚洲另类激情文学| 日韩精品无码人妻免费视频| 黄色毛片免费观看| 亚洲精品午夜无码专区| 久久久久久久99精品免费| 亚洲av乱码一区二区三区| 日韩毛片免费在线观看| a毛片成人免费全部播放| 国产精品亚洲片在线| 无码国产精品一区二区免费虚拟VR| 亚洲日本成本人观看| 三上悠亚亚洲一区高清| 99热免费在线观看| 老司机亚洲精品影院在线观看| 国产成人A亚洲精V品无码 | 亚洲免费人成在线视频观看| 亚洲精品韩国美女在线| 国产又粗又长又硬免费视频| 三上悠亚在线观看免费| 久热综合在线亚洲精品| 成人片黄网站色大片免费| 女人裸身j部免费视频无遮挡| 亚洲av日韩av天堂影片精品| 成全影视免费观看大全二| 丝袜捆绑调教视频免费区| 亚洲综合伊人制服丝袜美腿| 国产成人亚洲综合无码|