日期:2014-05-20 浏览次数:20750 次
[code=c]class A[/code]
{
int j;
public A()
{
System.out.printf("abc\n"); //要将这一部分输出怎么办呢?
}
public A(int i)
{
j = 20;
}
}
public class Test
{
public static void main(String[] args)
{
A aa = new A(20);
A bb = new A();
System.out.printf("%d\n", aa.j);
}
}