摘要: C#初始化顺序类成员变量初始化先于类的构造函数静态成员变量先于实例变量子类成员变量先于父类成员变量(java相反)父类构造函数先于子类构造函数参考实例:using System;//using System.Collections.Generic;//using System.Linq;//using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { // DriveB d = new DriveB(... 阅读全文
posted @ 2014-03-24 14:32 马羊 阅读(257) 评论(0) 推荐(0) 编辑