🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ��Ұ��ҿ�һ����������Ĵ��ˣ���ô�ģ�

#12099
From: bob
Date: Mon, 09 Aug 2004 03:55
34 lines
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
:          }
:     }  


--
�� ��Դ:���㽭��ѧ���ɰٴ�վ bbs.zju.edu.cn��[FROM: bob]
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!ZJU

Show 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