Topic: Together学习资源的疑问

  Print this page

1.Together学习资源的疑问 Copy to clipboard
Posted by: chenyajun5
Posted on: 2003-07-06 08:26

http://www.cjsdn.com/post/view?bid=19&id=15632&sty=3&keywords=together+%D1%A7%CF%B0,我照着上面练习的时候出现一个问题,在”7:使用类模式进行代码重构“中编译工程时,出现一个错误提示:E:\TogetherSoft\Together6.0.1\myprojects\airline\AirlinePD\Reservation.java:19: missing return statement
。意思是说Reservation类的calcPrice类被声明为double类型,但是没有return。请问:calcPrice该如何写或应用什么pattern??

2.Re:Together学习资源的疑问 [Re: chenyajun5] Copy to clipboard
Posted by: lcwling
Posted on: 2003-08-21 20:26

Association "Stub implementation pattern"
选中calcPrice,右键:
choose pattern--->member----->Stub implementation


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923