摘要: package oop.demo4;​import oop.demo4.Student;​public class Demo4 { public static void main(String[] args) { Student student=new Student(); student.getN 阅读全文
posted @ 2021-10-07 22:23 clown-lan 阅读(9) 评论(0) 推荐(0)
摘要: package oop.demo3;​public class Demo3 { public static void main(String[] args) { Person person=new Person(); Person person1=new Person("book"); System 阅读全文
posted @ 2021-10-07 21:40 clown-lan 阅读(11) 评论(0) 推荐(0)
摘要: 静态与非静态方法 package oop;​public class Demo { public static void main(String[] args) { Demo.a(); new Demo().b(); } public static void a(){ System.out.prin 阅读全文
posted @ 2021-10-07 21:26 clown-lan 阅读(26) 评论(0) 推荐(0)