Look at the code below. You have four classes (O, X, T,
and M) and a variable of each of these.
O o;
X x;
T t;
M m;
The following assignments are all legal (assume that they all
compile)
m = t;
m = x;
o = t;
The following assignments are all illegal (they cause compiler
errors)
o = m;
o = x;
x = o;
What can you say about the relationships of these classes?
A.
O is a superclass and T, M, and X are subclasses
B.
X is a superclass and M, O, and T are subclasses
C.
M is a superclass and O, T, and X are subclasses.
D.
T is a superclass and M, O, and X are subclasses