(線程靜態(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?
(下面這段代碼的最終運行結(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連接中起到什么樣的角色)