Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Map Method return type interface

 
Inesh Hettiarachchi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Cant we use an interface type as a method return type in our web service class

eg.

public Vector<InterfaceType> getSelectedObjects()
{
//...
return objects
}
if so can you please explain.
Thanks in advance,
inesh.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic