程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> 關於C語言 >> 關於C#的問答

關於C#的問答

編輯:關於C語言

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.

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved