class Fruit { public float calories(float serving) { return 0F; } } class Apple extends Fruit { public double calories(double amount) { return 0D; } }