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...

If you wanted to change the telephone area code for a group of records, you would use a(n) ________ Query

Fill in the blank(s) with correct word

Computer Science & Information Technology

Page numbers can be inserted ONLY into the footer of a document

Indicate whether the statement is true or false

Computer Science & Information Technology