@Test public void testDerivedCall() throws Exception { Count a = new QuickCount(); Number b = new Integer(5); a.increment(b); Assert.assertEquals(a.getCount(), 5, "Overriding only works for equal signatures"); }
public void increment(Integer amount) { super.increment(2 * amount.intValue()); }
QuickCount extends Count { public void increment(Integer amount) { super.increment(2 * amount.intValue()); } }
QuickCount extends Count { public void increment(Integer amount) { super.increment(2 * amount.intValue()); }  }
QuickCount extends Count { public void increment(Integer amount) { super.increment(2 * amount.intValue()); }  void increment(Integer amount); }
QuickCount extends Count { public void increment(Integer amount) { super.increment(2 * amount.intValue()); }  void increment(Integer amount);  }