🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: java�е�oop����

#21564
From: �����ơ��������λλ�
Date: Thu, 27 Nov 2003 16:27
19 lines
1758 bytes
abstract class�Dz������object��,���Բ���дnew A(),��new B()�ǿ��Ե�
(���B����abstract class)
A a = new B();����д�Ǹ���referenceָ���������,����Ϊ�����̬

�� �� knotyu (Ali88) �Ĵ������ᵽ: ��
: A a = new B();
: �����û�м��������÷���A ��һ��abstract class, B��һ����ͨ���࣬����˵
: abstract class�Dz������object�ģ���������ı��ʽ�÷�ȷʵ���ڣ�˭�ܽ���һ����
: ��
: ����ı��ʽ�Ϸ���B��Ҫ����ʲô���������


--
      ,,
  ___(  )___
 /          \      ����һֻСС��
/\/\/\||/\/\/\
      ^^
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.19.13]
Technical Details
Message-ID: <49Qa7E$9qT@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,b5989b2b41fb4312,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-11-27 08:26:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTU
From: pwlazy.bbs@bbs.sjtu.edu.cn ( �����ơ��������λλ�)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: java�е�oop����
Date: 27 Nov 2003 16:27:48 GMT
Organization: ��ˮ˼Դ
Message-ID: <49Qa7E$9qT@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1069950302.A