foolsren@sina.com
~~谢了!!!
学习,谢谢楼主!!!
foolsren@sina.com
public class A
{
public int a;
public int change(int m)
{
return m;
}
public A()
{
System.out.println("constructA");
a1();
}
public void a1()
{
System.out.println("A - a1");
}
}
public class B extends A
{
int bb = 0;
public B()
{
System.out.println("constructB");
bb = 1000;
System.out.println("bb = " + bb);
}
public void a1()
{
System.out.println("bb is " + bb);
System.out.println("B - a1");
}
public static void main(String[] args)
{
new B();
}
}
执行结果:
constructA
bb is 0
B - a1
constructB
bb = 1000
君子应象乾坤一样,能包容天地万物,有不屈不挠的精神,刚健有力意气风发,海纳百川,真正做到顺应天势
对古汉语认识不深,今天为查其何解才看到,真是觉得知识太少,向你们致敬,向你们学习!!!!