Article View: cn.bbs.comp.lang.java
Article #12099Re: ��Ұ��ҿ�һ����������Ĵ��ˣ���ô�ģ�
From: bob
Date: Mon, 09 Aug 2004 03:55
Date: Mon, 09 Aug 2004 03:55
34 lines
1556 bytes
1556 bytes
������һ��
�� �� lix.bbs@bbs.nankai.edu.cn (lix) �Ĵ������ᵽ: ��
: class Outer
public
: {
: int outer_i = 100;
: void test()
: {
: Inner in = new Inner(this);
: in.display();
: }
: public static void main(String [] args)
: {
: Outer outer =new Outer();
: outer.test();
: }
: }
: class Inner
: {
: Outer outer;
: public Inner(Outer outer)
: {
: this.outer = outer;
: }
: void display()
: {
: System.out.println("outer_i="+outer_i);
outer.outer_i
: }
: }
--
[m[1;36m�� ��Դ:���㽭��ѧ���ɰٴ�վ bbs.zju.edu.cn��[FROM: bob][m
Technical Details
Message-ID:
<4DYGTS$9mO@bbs.zju.edu.cn>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.moat.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!ZJUShow Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,c7e878091c46386c X-Google-Attributes: gidf6cb0,public X-Google-Language: ENGLISH,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.moat.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!ZJU From: bob.bbs@bbs.zju.edu.cn (bob) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ��Ұ��ҿ�һ����������Ĵ��ˣ���ô�ģ� Date: 09 Aug 2004 03:55:59 GMT Organization: �㽭��ѧ���ɰٴ�վ Message-ID: <4DYGTS$9mO@bbs.zju.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1092023692.A