我的位置: 首頁 > 學(xué)習(xí)專區(qū) > .NET技術(shù) > 雙語面試題(.NET的)

雙語面試題(.NET的)

2012-10-25 13:58:00
來源:
[導(dǎo)讀] 1. What does the ThreadStatic attribute do?(線程靜態(tài)成員的作用是什么)2. Does C# support multiple inheritance?(C#支持多...
1. What does the ThreadStatic attribute do?

(線程靜態(tài)成員的作用是什么)

2. Does C# support multiple inheritance?

(C#支持多重繼承嗎)

3. C# provides, by default a parameterless constructor. If I write a constructor that takes a string as a parameter, but want to keep the parameterless constructor. How many constructors should I write?

(C#提供默認(rèn)構(gòu)造函數(shù)(不帶參數(shù)),如果我寫了一個帶有一個string類型參數(shù)的構(gòu)造函數(shù),但是又想保留不帶參數(shù)的構(gòu)造函數(shù),那么我需要寫多少個構(gòu)造函數(shù))

4. What’s the difference between an interface and abstract class?

(接口與抽象類有什么區(qū)別)

5. What’s the difference between deep copy and shallow copy?

(深拷貝與淺拷貝有什么區(qū)別)

6. If an exception is thrown inside a catch block, will the finally block be still be called?

(如果catch塊捕獲了一個異常,那么finally塊還會被調(diào)用嗎)

7. a)Can a struct inherit from another struct?

(結(jié)構(gòu)體能繼承結(jié)構(gòu)體嗎)

b)Can a struct inherit from another class?

(結(jié)構(gòu)體能繼承類嗎)

c)Can a struct be the base of another class?

(結(jié)構(gòu)體可以作為一個類的基類嗎)

d)Can a struct implement an interface?

(結(jié)構(gòu)體可以實現(xiàn)一個接口嗎)

e)What’s the difference between struct and class?

(結(jié)構(gòu)體與類有什么區(qū)別)

8.What’s the difference between Debug and Trace class?

(Debug類與Trace類有什么區(qū)別)

9. What’s the final result?

(下面這段代碼的最終運(yùn)行結(jié)果是什么)

double expectedValue = 1/2;

if(expectedValue > 0)

{

expectedValue = expectedValue + 0.5;

}

Console.WriteLine(expectedValue);

10. What is the role of the DataReader class in ADO.NET connections?

(DataReader在ADO.NET連接中起到什么樣的角色)

評論
熱點專題
>>
相關(guān)文章推薦
>>
好吊妞免费视频在线观看,久久亚洲国产人成综合网,久久精品国产2020,欧美精品综合在线
在线观看免费人成视频色快 | 亚洲欧美在线a免费线上看 一级国产精品免费观看 | 视频一区二区欧美 | 最新国产精品久 | 香蕉久久高清国产精品观看 | 日本欧美高清乱码一区二区 |