myCall(int i,int j,String c,char c);
public class para{
int i;
int j;
string c;
char d;... get/set方法
}
函数变成myCall(para i)
这样好么?
比如两个应用的不同函数,对于User模块有参数类UserParam,FeeBack模块有参数类FeeParam
是这样定义好
1.getUser(Param a)
2.getFeeback(Param a)
还是
1.getUser(UserParam a)
2.getFeeBack(FeeParam a)这样好不好
就像
struts的action一扬
public ActionForward execute(
ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest request,
HttpServletResponse response)
throws DataBaseException, WebServerException {}