文章出處

class Student{

public void tell(){

System.out.println("Hello jikexueyuan");

}

public void main{

Student stu=new Student();

stu.tell();

//匿名對象可以直接new 但是只能使用一次

new Student.tell();

}

}


文章列表


不含病毒。www.avast.com
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()