打字猴:1.700461573e+09
1700461573 this.subject=subject;
1700461574
1700461575 }
1700461576
1700461577 public String getAppellation(){
1700461578
1700461579 return appellation;
1700461580
1700461581 }
1700461582
1700461583 public void setAppellation(String appellation){
1700461584
1700461585 this.appellation=appellation;
1700461586
1700461587 }
1700461588
1700461589 public String getContxt(){
1700461590
1700461591 return contxt;
1700461592
1700461593 }
1700461594
1700461595 public void setContxt(String contxt){
1700461596
1700461597 this.contxt=contxt;
1700461598
1700461599 }
1700461600
1700461601 public String getTail(){
1700461602
1700461603 return tail;
1700461604
1700461605 }
1700461606
1700461607 public void setTail(String tail){
1700461608
1700461609 this.tail=tail;
1700461610
1700461611 }
1700461612
1700461613 }
1700461614
1700461615 注意看粗体部分,实现了一个接口,并重写了clone方法,大家可能看着这个类有点奇怪,先保留你的好奇,我们继续讲下去,稍后会给你清晰的答案。我们再来看场景Client的变化,如代码清单13-5所示。
1700461616
1700461617 代码清单13-5 修改后的场景类
1700461618
1700461619 public class Client{
1700461620
1700461621 //发送账单的数量,这个值是从数据库中获得
1700461622
[ 上一页 ]  [ :1.700461573e+09 ]  [ 下一页 ]