I\'m trying to define an inner class in a hierarchy of classes and I can\'t figure out the right way to make sure that the inner class correctly subclasses the parents\' cor