摘要: package com.oop;import com.oop.demo06.Person;import com.oop.demo06.Student;public class Application { public static void main(String[] args) { //一个对象的 阅读全文
posted @ 2021-06-11 21:43 Leoyuan 阅读(75) 评论(0) 推荐(0) 编辑
摘要: package com.oop;import com.oop.demo05.A;import com.oop.demo05.B;;public class Application { //静态的方法和非静态的方法区别很大! //静态方法:方法的调用只和左边,定义的数据类型有关 //非静态方法:重写 阅读全文
posted @ 2021-06-11 18:19 Leoyuan 阅读(40) 评论(0) 推荐(0) 编辑
摘要: package com.oop;import com.oop.demo05.Person;import com.oop.demo05.Student;public class Application { public static void main(String[] args) { Student 阅读全文
posted @ 2021-06-11 13:07 Leoyuan 阅读(44) 评论(0) 推荐(0) 编辑
摘要: package com.oop;import com.oop.demo05.Student;public class Application { public static void main(String[] args) { Student student = new Student(); stu 阅读全文
posted @ 2021-06-11 07:38 Leoyuan 阅读(45) 评论(0) 推荐(0) 编辑
摘要: package com.oop.demo04;//类 private:私有public class Student { //属性私有 private String name; //名字 private int id;//学号 private char sex;//性别 private int age 阅读全文
posted @ 2021-06-11 07:10 Leoyuan 阅读(48) 评论(0) 推荐(0) 编辑