[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);
}
}
------ Solution --------------------------------- -----------
you do not have the output of the a bb = new A ();
------ Solution ------- -------------------------------------
has been output , ah , the landlord
- ----- For reference only ---------------------------------------
I was trying to "abc" output.
------ For reference only -------------------------------------- -
has been output , and that I did not see , thank you fudongrifdr.
没有评论:
发表评论