2016年3月26日

java基础(一)---this,super和integer

摘要: 1.this和super的区别 this和super都只能用在非静态方法中,不可以出现在静态方法中,如static,final this:只能用于方法体内,相当于c中的指针,指向成员变量,this作用于子类中 private String password; public void first(){ system.out.println("this不能出现在静态方法中"); } publ... 阅读全文

posted @ 2016-03-26 15:18 风之叹息 阅读(347) 评论(0) 推荐(0) 编辑

导航