I have a interface like the below :
public interface a {
public void m1();
public void m2();
public void m3();
}
public class A implements a {
public void m3() {
// implementation code
}
}
I want to avoid implementation for the rest of the method. one way is to have all the methods without implementing in the class that tries to implement interface.
How do I avoid this. Example code would help me understand better :)