Article View: cn.bbs.comp.lang.java
Article #22498���һ������
From: capi
Date: Fri, 19 Sep 2003 17:05
Date: Fri, 19 Sep 2003 17:05
14 lines
1243 bytes
1243 bytes
public class MyCircle{
public double radius;
public double diameter;
public void setRadius(double radious){
6) this.radius=radius;
7) this.diameter=radius*2;}
public double getRadius(){
return radius;}
}
A. The diameter of a given MyCircle is guaranteed to be twice its radius.
B. The radius of a MyCircle object can be set without affecting its diameter.
ѡA�Dz���
--
[m[1;32m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.202.43.121][m
Technical Details
Message-ID:
<48KfY9$A4R@bbs.sjtu.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.neu.edu.cn!SJTUShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB X-Google-Thread: f6cb0,d0ed1a0e384858a3,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-09-19 10:07:43 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.neu.edu.cn!SJTU From: capi.bbs@bbs.sjtu.edu.cn (capi) Newsgroups: cn.bbs.comp.lang.java Subject: ���һ������ Date: 19 Sep 2003 17:05:59 GMT Organization: ��ˮ˼Դ Message-ID: <48KfY9$A4R@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1063991145.A Lines: 14