🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [����]������protected��Ա��������ֱ�� ��

#20187
From: hope against hope
Date: Sun, 21 Dec 2003 16:37
21 lines
1665 bytes
class B�̳���abstract class A��Ҳ��ͬʱ�̳���A������protected�Լ�public(��Ĭ
��"friendly")����ݳ�Ա�ͳ�Ա����class C��B��ͬһ���ļ����ڣ��༴��ͬһ��
package�ڣ���Ȼ��Ȩ�޷���B������з�private�ij�Ա����(B�������࣬�������ʵ
��)
�� �� xuchen (xuchen) �Ĵ������ᵽ: ��
: abstract class A{
: protected int flag;
: }
: class B extends A{
: }
: class C{
:     B b;
:     b.flag;//��ô����ֱ�ӷ��ʵģ��������ˡ�
: }
: >>  .................<����ʡ��>............


--
HOPE AGAINST HOPE

�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: shide]
Technical Details
Message-ID: <49jOIA$9OS@Freecity.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!news.primus.ca!news.primus.ca!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,a03a5c6168a02eab,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-22 03:08:18 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!news.primus.ca!news.primus.ca!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: shide.bbs@Freecity.dhs.org (hope against hope)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: [����]������protected��Ա��������ֱ�� ��
Date: 21 Dec 2003 16:37:24 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <49jOIA$9OS@Freecity.dhs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1072024426.A
Lines: 21