Java Calculator/Inheritence/Even Odd Class