Java進階總結——面向對象

Java進階總結1 1.面向對象的三大特徵  //自定義一個類  /**  語法: [修飾符] class 類名{ //成員變量  屬性   //成員方法  行爲 }  */  public class Student{  //屬性 字段 成員變量  int stuid;//學號  String name;//姓名  //方法  public void study(){  System.out.p
相關文章
相關標籤/搜索