关于c#的问答_c#教程

2008-02-23 05:44:55来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

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 elements object, resulting in a different, yet identacle object.


标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇: 字符串中文的问题_visualbasic教程

下一篇: 利用vb控制窗口显示风格_visualbasic教程