摘要:
this关键字的作用 1.表示类中的属性 2.可以使用this调用本类的构造方法 3.this表示当前对象 1.1 this 调用本类中的属性 class Person { private String name; // 姓名 private int age; // 年龄 public Person 阅读全文
posted @ 2023-01-29 19:13
远枝
阅读(159)
评论(0)
推荐(0)
努力提高认知层次