摘要:
public class test { public static int cc = 0; static test() { cc++; } public test() { cc++; } }test t1 =new test1();test t2 =new test2();输出:cc:3分析:1:静态构造函数既没有访问修饰符,也没有参数。因为是.NET调用的,所以像public和private等修... 阅读全文
posted @ 2010-04-29 20:27
yoolo wu
阅读(324)
评论(0)
推荐(1)
浙公网安备 33010602011771号