会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Coda
Stay Hungry!Stay Foolish!
首页
新随笔
管理
2015年3月31日
Java知多少(21)this关键字详解
摘要: this 关键字用来表示当前对象本身,或当前类的一个实例,通过 this 可以调用本对象的所有方法和属性。例如: 1 public class Demo{ 2 public int x = 10; 3 public int y = 15; 4 public void sum(...
阅读全文
posted @ 2015-03-31 21:02 Coda
阅读(1217)
评论(2)
推荐(1)
公告