getCalory is useless, remove it from Food class and compile the code.