摘要:
privateclass Singleton{//把对象访问变成私有的,使外部调用只能通过公有方法private static Singleton _instance = new Singleton();//静态方法,使外部可以通过类名调用public static Singleton CreateInstance(){return _instance;}} 阅读全文
posted @ 2009-09-03 15:52
蒋凯
阅读(169)
评论(0)
推荐(0)