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


Answer: A

Computer Science & Information Technology

You might also like to view...

Which number in the accompanying figure represents the button used to begin recording?

A. 1 B. 2 C. 3 D. 4

Computer Science & Information Technology

The Windows 10 intelligent personal assistant is named ________

A) Cortana B) Siri C) Galaxy D) Katniss

Computer Science & Information Technology

Calculate the size of , the third angle in each triangle, and classify the triangle as acute, obtuse, or right.

A.
B.
C.
D.
E.

Computer Science & Information Technology

____ includes native support of video without the use of a plug-in.

A. CSS3 B. HTML5 C. XML D. XHTML

Computer Science & Information Technology