我的評論
re: Thinking in Java 第四版(完全)及源代碼[未登錄] 古風(fēng) 2008-08-04 12:36
foolsren@sina.com
~~謝了!!!
~~謝了!!!
re: Java做的酒店管理系統(tǒng)(C/S)源碼[未登錄] 古風(fēng) 2008-08-04 12:34
學(xué)習(xí),謝謝樓主!!!
foolsren@sina.com
foolsren@sina.com
re: JAVA筆試題(金山軟件)[未登錄] 古風(fēng) 2008-01-04 15:08
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();
}
}
執(zhí)行結(jié)果:
constructA
bb is 0
B - a1
constructB
bb = 1000
{
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();
}
}
執(zhí)行結(jié)果:
constructA
bb is 0
B - a1
constructB
bb = 1000
re: 天行健,君子以自強(qiáng)不息;地勢坤,君子以厚德載物[未登錄] 古風(fēng) 2007-12-22 10:54
君子應(yīng)象乾坤一樣,能包容天地萬物,有不屈不撓的精神,剛健有力意氣風(fēng)發(fā),海納百川,真正做到順應(yīng)天勢
re: 天行健,君子以自強(qiáng)不息;地勢坤,君子以厚德載物[未登錄] 古風(fēng) 2007-12-22 10:48
對古漢語認(rèn)識不深,今天為查其何解才看到,真是覺得知識太少,向你們致敬,向你們學(xué)習(xí)!!!!