🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #22038

���ڳ���

#22038
From: fool
Date: Fri, 31 Oct 2003 08:09
21 lines
1128 bytes
class Base {
public void saywords()
{
System.out.println("I am father");
}
}
class Extension extends Base {
public void saywords()
{
System.out.println("I am Child");
}
}
public class test1 {
public static void main(String args[]) {
Base b=new Extension();
((Base)b).saywords();
}
}
upcasting�ƺ����ܷ��ʵ�����ķ�������ô�������
--
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.53.34]
Technical Details
Message-ID: <495IRI$ASJ@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsgate.cuhk.edu.hk!news.zixia.net!news.ccie.net.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB
X-Google-Thread: f6cb0,a2ab644fba841631,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-10-31 00:06:39 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsgate.cuhk.edu.hk!news.zixia.net!news.ccie.net.cn!SJTU
From: tutufool.bbs@bbs.sjtu.edu.cn (fool)
Newsgroups: cn.bbs.comp.lang.java
Subject: ���ڳ���
Date: 31 Oct 2003 08:09:07 GMT
Organization: ��ˮ˼Դ
Message-ID: <495IRI$ASJ@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1067587362.A
Lines: 21