🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

��λ�����һ��import�ĺ���?????

#19030
From: wangjianwei
Date: Mon, 12 Jan 2004 02:12
35 lines
1960 bytes
 
������import��c�����е�include�Ƿ�����; 
������ڳ���ͷ����������� 
import aLibrary.*; 
������ȥ���������aLibrary.*;�������·���� 
�������������һ������: 
public class Prey{ 
        //private implentation 
        public Prey(int whereX,int whereY,int leastX,int leastY,int rangeX, 
                    int rangeY) 
        public void move() 
        public int getX() 
        public int getY() 
        public void setRoam(int distance) 
        public void print() 
  } 
 
������һ������Test.java��ʹ��Prey��: 
import Prey; 
public  class Test{ 
        private Prey rabbit; 
        public Test(){ 
        //create and manipulate rabbit object 
        } 
        public static void main(string[] args) 
        { 
         Test prog=new Test(); 
        } 
} 
��Ӧ�ð�Prey�ŵ�����. 
�Ҹտ�ʼѧ��JAVA�кö�ط���֪,�������ָ��һ��. 

--

�� ��Դ:���㽭��ѧ���ɰٴ�վ http://bbs.zju.edu.cn [FROM: wangjianwei]
Technical Details
Message-ID: <4AEAk8$AaJ@bbs.zju.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!ZJUBBS

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,7e246a7947675f50,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-01-11 18:13:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!ZJUBBS
From: wangjianwei.bbs@bbs.zju.edu.cn (wangjianwei)
Newsgroups: cn.bbs.comp.lang.java
Subject: ��λ�����һ��import�ĺ���????? 
Date: 12 Jan 2004 02:12:56 GMT
Organization: �㽭��ѧ���ɰٴ�
Message-ID: <4AEAk8$AaJ@bbs.zju.edu.cn>
X-Filename: Java/M.1073873576.A