• Post Reply Bookmark Topic Watch Topic
  • New Topic

Basic Java Problem  RSS feed

 
mansi sac
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am stuck with a problem where I have to make connection with two different server side classes and call the methods in them.Both the classes have methods with exactly same name and signature and hence same input.What is expected now is to use common code to call the methods in these classes but somehow separate out the code to make connection with the server classes.I am doing this in a common method.But the problem is that this common method is expected to return different return types in both the cases.

Please suggest a solution to this problem.Also correct me if my approach is incorrect.

Thanks in Advance,
Mansi
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may try the following.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!