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:

Verified
Correct Answer:
Verified
Q22: In dynamic binding, the method that gets
Q23: An abstract class _.<br>A) does not have
Q24: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB8472/.jpg" alt=" -Based on the
Q25: An interface is a class that contains
Q26: Redefining a method of a superclass is
Q28: Java uses late binding for methods that
Q29: Which of the following statements about the
Q30: Consider the following class definitions. public class
Q31: Inheritance implies an "is-a" relationship.
Q32: Inheritance is an example of what type