正在加载图片...
尖于this 在方法中使用数据成员时’都会隐含的使 用this名称 public Account(string accountNumber, double balance)( this account Number accountNumber this balance balance public Account (string number, double money) t accountNumber= number;//实际等于this. accountNumber= number this. balance= money;//实际等于this. balance= money;关于this • 在方法中使用数据成员时,都会隐含的使 用this名称 public Account(String accountNumber, double balance) { this.accountNumber = accountNumber; this.balance = balance; } public Account(String number, double money) { accountNumber = number; //实际等于this.accountNumber = number; this.balance = money; //实际等于this.balance = money; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有