关于C#的问答_C#教程
2008-03-03 02:47
197 查看
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.
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.
相关文章推荐
- 关于C#的问答_C#教程
- 十四个关于ASP.NET基础知识问答(C#版)
- 关于C#派生类调用基类构造函数的理解
- 关于C#做出的小程序的调试细节 及 visible属性和几个C#中的事件方法
- C# byte[]数组,问答
- 关于 c# 中SQL 事务的回滚
- C#中关于@的用法
- ASP.NET(C#)——关于后台变量和前台控件
- python中关于日期时间处理的问答集锦
- 关于C#中垃圾回收GC杂谈
- C#中关于new的用法
- 关于.NET界面显示错误的咨询(C#语言编写、jmail收发邮件)
- 关于c# winForm窗体最大化的设置
- C#关于进程与线程(一)
- 关于c#中timer的使用可能要注意的
- 关于C#的一些小知识
- 关于C# 委托(delegate)与事件(event)的用法及事例
- c# 关于json 的引用
- 关于C和C++和C#之间的static
- 【面向对象语言系列】关于 C# 日志功能,你需要知道的事