Article View: cn.bbs.comp.lang.java
Article #12193Re: �ʸ�����static������
From: The One
Date: Tue, 03 Aug 2004 03:01
Date: Tue, 03 Aug 2004 03:01
33 lines
1747 bytes
1747 bytes
û��
�����Ҿ���û��
Table.b1 = new Bow(111);
��Ϊ��ֵ����Ҳ����ջ����е�
��Ȼ��������ɶ��� Bow(111) Ȼ������refѹջ
�������Bow(111)
Ȼ�� ��Ϊ�״ε���Table��static��Ա����������ʼ���������
->static->non-static ->�����) ����static��������˳��
Bow(1)
Bow(2)
����Table.b1��refѹջ���ٽ��и�ֵ����
�������Table.b1 ָ�����Bow(111)
�� �� TriTree.bbs@bbs.sjtu.edu.cn (TriTree) �Ĵ������ᵽ: ��
: class Bowl {
: Bowl(int marker) {
: id = marker;
: System.out.println("Bowl(" + marker + ")");
: }
: void f(int marker) {
: System.out.println("f(" + marker + ")");
: }
: int id;
: }
: ...........................
--
�ⲻ��ǩ���Ҳ�Ҫǩ��
[m[1;33m�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 162.105.184.3][m
Technical Details
Message-ID:
<4DTU2O$A4L@bbs.pku.edu.cn>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!news.bylinux.net!maily.cic.tsinghua.edu.cn!news.happynet.org!PKUShow Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,d0ffb2cbf3a956a X-Google-Attributes: gidf6cb0,public X-Google-Language: Chinese,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!news.bylinux.net!maily.cic.tsinghua.edu.cn!news.happynet.org!PKU From: chinux@bbs.pku.edu.cn (The One) Newsgroups: cn.bbs.comp.lang.java Subject: Re: �ʸ�����static������ Date: 03 Aug 2004 03:01:36 GMT Organization: ����δ��վ Message-ID: <4DTU2O$A4L@bbs.pku.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1091501688.A Lines: 33