目前分類:JAVA (5)

瀏覽方式: 標題列表 簡短摘要

聯成SCJP教學影片:
http://www.lccnet.tv/pages/result.aspx?c=26

rexra 發表在 痞客邦 留言(0) 人氣()

public class Test1{
int i; //2 static int i加static就不用有物件,所以正確
public static void main (String[])args{
int i; //1
System.out.println(i);

rexra 發表在 痞客邦 留言(0) 人氣()

  • Dec 16 Wed 2009 11:26
  • java

class Animal{
int legs;
Animal(int l){
super();
legs=l;

rexra 發表在 痞客邦 留言(0) 人氣()



方法:遊
屬性:有眼睛、和游行的尾巴

rexra 發表在 痞客邦 留言(0) 人氣()

  • Oct 28 Wed 2009 11:14
  • Java

class Animal{
int legs;

Animal(int l){legs=l; }
Animal(){legs=514; }

rexra 發表在 痞客邦 留言(0) 人氣()