javaÖеÄÒÉÎÊ
1 public class BirthDate {
2 private int day;
3 private int month;
4 private int year;
5
6 public BirthDate (){}
7
8 public BirthDate (int d,int m,int y){
9 day = d;
10 month = m;
11 year = y;
12 }
13
14 //getting and setting¡¡
15
16 public void display(){
17 System.out.println(year + "-" + month + "-" + day);
18 }
19 }
20 public class TestBirthDate{
21 public static void main(String args[]){
22 Example ex = new Example();
23 int date = 9;
24 BirthDate d1= new BirthDate(7,7,1970);
25 BirthDate d2= new BirthDate(1,1,2000);
26 ex.change1(date);
27 ex.change2(d1);
28 ex.change3(d2);
29 System.out.println("date=" + date);
30 d1.display();
31 d2.display();
32 }
33 public void change1(int i){ i = 1234; }
34 public void change2(BirthDate b){
35 b = new BirthDate(22,2,2004);
36 }
37 public void change3(BirthDate b){
38 b.setDay(22);
39 }
40 }
ÎÊÌâ1£ºÕâ³ÌÐòÓÐûÓÐÎÊÌ⣿ÎÒÊÇ´ÓÒ»¸öºÜרҵµÄ½²ÒåÉÏ¿´µ½µÄ
ÎÊÌâ2£ºÎªÊ²Ã´TestBirthDateÀàÖУ¨22ÐУ©Æ½°×Î޹ʵijöÀ´Ò»¸öExampleÀ໹´´½¨Á˶ÔÏó£¿
ÎÊÌâ3£º26-28ÐеÄchange1¡¢change2¡¢chagnge3ÊÇʲô£¬ÓÐʲô×÷Óã¬ÊÇExampleµÄ·½·¨Âð£¿ÄÜÖ±½ÓÒýÓÃÂð£¿ÎªÊ²Ã´ÓÖÔÚ33-39ÐÐÓж¨Ò壿
ÎÊÌâ4£º38ÐÐsetDayµÄ·½·¨Ì
Ïà¹ØÎÊ´ð£º
Ä¿Ç°ÓÐÒ»¸öjava³ÌÐò,µ÷Óô洢¹ý³ÌÔÚÊý¾Ý¿âÖÐдÈëһЩÊý¾Ý£¬È»ºó½«ÕâЩÊý¾Ý´«Êä¸øÁíÍâÒ»¸ö³ÌÐò,Ä¿Ç°²»¹ÜjavaÁ¬½Ó³É¹¦»òÊDz»³É¹¦£¬¸Ã´æ´¢¹ý³Ì¶¼»áдÈëÊý¾Ý!
Ä¿Ç°ÐèÒªÔÚjavaÁ¬½Ó²»³É¹¦µÄÇé¿öÏÂ,Óкη½·¨ÄÜʹ´æ´¢¹ý³Ì ......
²éAPI£¬¿´µ½FeatrueFactoryÓÐÕâ¸ö·½·¨
public Feature createPolyLine(double[][] thePoints,
R ......
ÊÖ»ú¿ª·¢ÖУ¬CÖ÷Òª×öÇ°¶Ë£¬JavaÖ÷ÒªÓÃÓÚºó¶ËÊý¾Ý´¦Àí£¬È˼Ò˵C×öµÄ¶«Î÷»á´«»ØһЩÊý¾Ý£¬ÔÙͨ¹ýJavaÓëºǫ́½»»¥ºó£¬·µ»ØXML»òÆäËûµÄ¸ñʽµÄÎĵµ¸øC¿ª·¢µÄÈËÔ±£¬ÇëÎÊC´«»ØһЩÊý¾ÝÖ÷ÒªÊÇʲô¸ñʽµÄ£¿·µ»ØµÄXMLµµÓÖÊÇʲà ......
JavaÊDz»ÊDz»¿ÉÒԼ̳и¸À๹Ôì·½·¨£¿
ÎÒÃÇÀÏʦ¸øÎÒдµÄÕâ¸öÎÒ²»ÊǺÜÃ÷°×¡£
1¡¢×ÓÀà¼Ì³Ð¸¸ÀàËùÓи¸ÀàµÄ±äÁ¿ºÍ·½·¨£¬µ«²»¼Ì³Ð¸¸ÀàµÄ¹¹Ôì·½·¨£¬ÔÚ×ÓÀàµÄ¹¹Ôì·½·¨¿ÉÒÔʹÓÃÓï¾äsuper(²ÎÊýÁбí)µ÷Óø¸ÀàµÄ¹¹ ......