"A and B. B extends A."? So the parent of a class is the child of the class its parent of? Are you sure there isnot another way to do this?