摘要: 一、this关键字 this关键字代表了所属函数的调用者对象。 this关键字作用: 1. 如果存在同名成员变量与局部变量时,在方法内部默认是访问局部变量的数据,可以通过this关键字指定访问成员变量的数据。 public Animal(String n , String c){ name = n; 阅读全文
posted @ 2016-01-29 19:45 Hsinwang 阅读(147) 评论(0) 推荐(0) 编辑