摘要:
package com.oop;import com.oop.demo06.Person;import com.oop.demo06.Student;public class Application { public static void main(String[] args) { //一个对象的 阅读全文
摘要:
package com.oop;import com.oop.demo05.A;import com.oop.demo05.B;;public class Application { //静态的方法和非静态的方法区别很大! //静态方法:方法的调用只和左边,定义的数据类型有关 //非静态方法:重写 阅读全文
摘要:
package com.oop;import com.oop.demo05.Person;import com.oop.demo05.Student;public class Application { public static void main(String[] args) { Student 阅读全文
摘要:
package com.oop;import com.oop.demo05.Student;public class Application { public static void main(String[] args) { Student student = new Student(); stu 阅读全文
摘要:
package com.oop.demo04;//类 private:私有public class Student { //属性私有 private String name; //名字 private int id;//学号 private char sex;//性别 private int age 阅读全文