摘要: this关键字使用方法 this.属性 或者 this.方法 this指代当前对象 this() 在一个构造方法中调用本类中的另一个构造方法,实现构造方法代码的复用 this()只能写在构造方法内的第一句 public class Person { private String name; priv 阅读全文
posted @ 2016-12-01 22:49 温柔小怪兽 阅读(105) 评论(0) 推荐(0) 编辑