Article View: cn.bbs.comp.lang.java
Article #22047Re: ���ڳ���
From: ��
Date: Sat, 01 Nov 2003 02:39
Date: Sat, 01 Nov 2003 02:39
21 lines
1193 bytes
1193 bytes
new����Extension
Extension��override��saywords()
���Ե��õ�ʱ����û��upcast��ֻ�����
Extension�İ汾
�� �� tutufool.bbs@bbs.sjtu.edu.cn (fool) �Ĵ������ᵽ: ��
: class Base {
: public void saywords()
: {
: System.out.println("I am father");
: }
: }
: class Extension extends Base {
: public void saywords()
: {
: >> .................<����ʡ��>............
--
[m[1;34m�� ��Դ:���㽭��ѧ���ɰٴ�վ bbs.zju.edu.cn��[FROM: flair][m
Technical Details
Message-ID:
<495lSO$9uQ@bbs.zju.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!ZJUBBSShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,a2ab644fba841631 X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-10-31 18:41:39 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!ZJUBBS From: flair.bbs@bbs.zju.edu.cn (��) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ���ڳ��� Date: 01 Nov 2003 02:39:04 GMT Organization: �㽭��ѧ���ɰٴ� Message-ID: <495lSO$9uQ@bbs.zju.edu.cn> X-Filename: Java/M.1067654232.A