JAVA面向對象詳解

面向對象的三大特徵:java 一、 封裝:測試 1)類自己是對屬性和方法的封裝this class Studentspa {對象   int id;繼承   String name;接口   int age;get   public static void main(String[] args)table   {class Student s = new Student(); s.id = 1;
相關文章
相關標籤/搜索