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.
新聞熱點
疑難解答