When writing your own, you just use the keyword interface instead of class, and then don't include the method implementations. Like this:
public interface MyInterface {
public void someMethod(long someParam);
}
public MyClass implements MyInterface {
//since I said "implements MyInterface", //I must include this method, or
//this class won't compile
public void someMethod(long someParam) {
//this is my implementation.
}
}
vijay.k
Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator