2011年11月25日
摘要: 程序如下所示 class Program { static void Main(string[] args) { 1、 Singleton.getInstance(); 2、Singleton s = new Singleton(); Console.ReadLine(); } }public class Singleton { private static int instance; public Singleton() { Console.WriteLine("no static Singleton"); } static Singleton() { Console.W 阅读全文
posted @ 2011-11-25 11:37 张林春 阅读(198) 评论(0) 推荐(0) 编辑