title: Call some methods from interface without override all the methods in JAVA
body: <p>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.</p>
  
  <pre><code>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 
  }
  </code></pre>
  
  <p>can anyone propose some solutions for this? </p>
  
  <p>Is there any design pattern available for this? If so, please provide links to reference.</p>
  
  <p>Thanks in advance.</p>