Assigning a subclass reference to a superclass variable is safe ________.
a. because the subclass object has an object of its superclass.
b. because the subclass object is an object of its superclass.
c. only when the superclass is abstract.
d. only when the superclass is concrete.
b. because the subclass object is an object of its superclass.
You might also like to view...
Through the onscreen display (OSD) menu, the technician has selected the proper video input; however, nothing displays on the monitor. What are the two most likely problems? (Select two.)
A) The wrong driver is installed. B) A cable is not connected securely on either end. C) The display backlight is broken. D) The display power supply is faulty. E) No device is sending video to the display.
Answer the following statements true (T) or false (F)
1. A recursive function can only return a value of type int or double. 2. The code of a function can contain at most one recursive call. 3. For some problems one can specify more natural solutions using recursion than using iteration. 4. A simple case is an instance of a problem that has a straightforward solution that requires no redefinition of the problem. 5. A recursive function must have at least one input argument.