@Test public void testInheritance() throws Exception { Count c = new QuickCount(); c.increment(); Assert.assertEquals(c.getCount(), 2, "Java always calls the overriden method, despite not marking it as abstract"); }
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);  }