Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no method body

Status
Not open for further replies.

mydavor

Programmer
Mar 21, 2004
41
0
0
AU
What is the meaning/function of the following declaration of getInitData method ? There is no body whatsoever, so what does getInitData actually do (obviously it is not inherited)?

import java.util.Vector;
import javax.servlet.http.*;

public interface DataSelectionServInterface {

public Vector getInitData(Vector lVectorIds,HttpSession httpsession);
}
 
That class is an interface - it defines what methods any implementing class should have. Eg :

Code:
public class DataSelectionServImpl implements DataSelectionServInterface {

    public Vector getInitData(Vector lVectorIds,HttpSession httpsession) {
          Vector v = new Vector();
          // do some stuff
          return v;
    }
}

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top