title: java interface with multiple implementation classes having different signature
body: <p>I am creating an interface say 'Car'</p>
  
  <pre><code>public interface Car {
      public void drive(int Speed, int Gear ); // for cars which have gears
      public void drive(int Speed); // for cars which do not have gears
  }
  </code></pre>
  
  <p>Now i am creating my implimentation classes say SimpleCar and AdvanceCar where</p>
  
  <ul>
  <li>SimpleCar do not have gears </li>
  <li>AdvanceCar have gears</li>
  </ul>
  
  <p>Now when i write my implementation classes i am forced to code for both the methods even though i do not want them in my implementation classes </p>
  
  <pre><code>public class SimpleCar implements Car {
      public void drive(int Speed, int Gear ){ ... }; // dont want this method in SimpleCar
      public void drive(int Speed ){ ... };
  }
  </code></pre>
  
  <p>can someone help me design my interface which has a method but the implementation classes have different signatures?</p>