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;
相关文章
相关标签/搜索