Call some methods from interface without override all the methods in JAVA
问题 Friends, I have an issue in Java: I'd like to implement one structure but I'm facing some difficulty in doing it, can anyone help me. interface samp1{ method1() method2() method3() } interface samp2{ method4() method5() } class Samp implements samp1,samp2 { // this class needs only method1 from interface samp1 and method 4 from interface samp2 // I don't want to override all the methods from interface } can anyone propose some solutions for this? Is there any design pattern available for this