Q:C#支持多繼承嗎?
A:不
Q:protected class訪問級別如何?
A:允許本類和子類訪問
Q:private class變量可以被繼承嗎?
A:行,但不能被訪問,但可以被繼承
Q:描述一下protected internal
A:只有派生類型或同一程序集中的類型才能訪問該成員。
Q:What does the term immutable mean?
A:The data value may not be changed. Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.
Q:System.String 和System.Text.StringBuilder 的區別?
A:
Q:能將不同類型的數據存在System.Array中嗎?
A:不能
Q:System.Array.CopyTo() 和 System.Array.Clone()區別?
A:The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copIEs the elements into another existing array. Both perform a shallow copy. A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array. A deep copy (which neither of these methods performs) would create a new instance of each element's object, resulting in a different, yet identacle object.