Look at the code below. You have five types—classes or interfaces—(U, G, B, Z, and X) and a variable of each of these types
U u;
G g;
B b;
Z z;
X x;
The following assignments are all legal (assume that they all compile).
u = z;
x = b;
g = u;
x = u;
The following assignments are all illegal (they cause compiler errors).
u = b;
x = g;
b = u;
z = u;
g = x;
What can you say about the types and their relationships? (What relationship are they to each other?)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.