I have two types of objects that can perform a calculate() operation with either an int or a byte:
int
byte
public class A { public int ca