There is no inheritance relationship between the classes X and Y(aside from their common superclass named Object). There is no inheritance relationship between the classes A and B.