package Nov2016; public class Ques1104 { private String num; public void setNum(String num){ num = num; // 1 this.num = num; // 2 } public String getNum(){ return num; } }
今日问题:
注释1和2两处的作用是否一样?(点击以下“【Java每日一题】20161104”查看20161103问题解析)
题目原发布于公众号、简书:【Java每日一题】20161104,【Java每日一题】20161104
每日一题最新将在公众号发布,欢迎订阅,交流进步