title: Spring Boot - interfaces and some functions implement
body: <p>I have a question about SpringBoot.</p>
  <p>I have an interface, two implementations, I want to implement some functions implementation A, some functions implementation B. How can make it? Service interface and implementations like so:</p>
  <p>ServiceInterface.java</p>
  <pre><code>public interface ServiceInterface{
  
  void functionA();
  void functionB();
  void functionC();
  }
  </code></pre>
  <p>ServiceImp1.java</p>
  <pre><code>public class ServiceImp1 implements ServiceInterface{
  
  @Override
  public void functionA(){
  
   //function A
  
  }
  
  @Override
  public void functionB(){
  
   //function B
  
  }}
  </code></pre>
  <p>ServiceImp2.java</p>
  <pre><code>public class ServiceImp2 implements ServiceInterface{
  
  @Override
  public void functionC(){
  
   //function C
  
  }}
  </code></pre>