Solved

Suppose That the Class Mystery Is Derived from the Class

Question 32

Multiple Choice

Suppose that the class Mystery is derived from the class Secret. Consider the following statements.Secret secRef = new Secret() ;
Mystery mysRef = new Mystery() ;Which of the following statements is legal in Java?
(i) secRef = mysRef;
(ii) mysRef = secRef;


A) Only (i)
B) Only (ii)
C) Both (i) and (ii)
D) None of these

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions