Java use of an interface in two separate classes that act as virtual pet training.