🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [super]������������е�super�����ú�������ʲ

#19442
From: ����
Date: Sun, 04 Jan 2004 12:42
30 lines
1834 bytes
super�ؼ������ڱ�ʾ���ࡣ������Ķ�����super��0��0����Ȼ�ͱ�ʾ���ø���Ĺ��캯
���ˡ�
super.xxx����ͨ�����ڵ��ø��౻���ǵķ���

�� �� varush. �Ĵ������ᵽ: ��
: ���ࣺ
: public class Point
: {
:     protected double x,y;
:     public Point(double x,double y)
:     { setPoint(x,y);}
:     public void setPoint(double x,double y)
:     {this.x=x;this.y=y;}
:     public String toString()
:     {return "("+x+","+y+")";}
: }
: ���ࣺ
: public class MyPoint extends Point
: {
:     private static Point p;
:     public MyPoint()
:     {super(0,0);}
:     public static void main(String args[])
:     {
:         p=new Point(0,0);
: (��������ʡ��...)

--
�뿪�����֪������ã�����˰����֪���Ժ󲻻����Ķ�һ�Ρ�
�� ��Դ:���ɽ��ˮ bbs.neu.edu.cn��[FROM: 210.83.210.174]
Technical Details
Message-ID: <4A8FHC$BKv@bbs.neu.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.neu.edu.cn!NEU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,a43574f846017467,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-01-04 04:43:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.neu.edu.cn!NEU
From: stillicel.bbs@bbs.neu.edu.cn (����)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: [super]������������е�super�����ú�������ʲ
Date: 04 Jan 2004 12:42:36 GMT
Organization: ��ɽ��ˮ
Message-ID: <4A8FHC$BKv@bbs.neu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: java/M.1073220156.A
Lines: 30