聯成SCJP教學影片:
http://www.lccnet.tv/pages/result.aspx?c=26
rexra 發表在 痞客邦 留言(0) 人氣(35)
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) 人氣(36)
class Animal{
int legs;
Animal(int l){
super();
legs=l;
rexra 發表在 痞客邦 留言(0) 人氣(2)
rexra 發表在 痞客邦 留言(0) 人氣(8)
class Animal{
int legs;
Animal(int l){legs=l; }
Animal(){legs=514; }
rexra 發表在 痞客邦 留言(0) 人氣(24)