已知:class C { private int count = 0; public C() { count++; } public static int getCount() { return count; } public static void main(String[] args) { C c1 = new C(); C c2 = new C(); C c3 = new C(); System.out.println(C.getCount()); }}则输出为
A、1;
B、2;
C、3;
D、编译错误
发布时间:2025-10-20 11:33:36