Assume Cylinder is a subtype of Circle. Analyze the following code:
Circle c = new Circle (5);
Cylinder c = cy;
a. The code has a compile error.
b. The code has a runtime error.
c. The code is fine.
a You cannot assign a variable of a supertype to a subtype without explicit casting.
You might also like to view...
Being able to make ____ means that the DNS server can provide a complete answer to a query or an error message when it cannot.
A. recursive queries B. forward queries C. reverse queries D. external queries
If Denise specifies Jan? as a search criterion, Excel will locate all of the following records EXCEPT ____.
A. Janet B. Jane C. Jani D. Jany
What can the phrase "Please Excuse My Dear Aunt Sally" help you remember?
A. How to do date calculations B. Order of operations C. Naming convention for cell ranges D. The various printing options available in Excel
Instead of implementing an application in a single big-bang release, modern systems are delivered in parts continuously and quickly
Answer the following statement true (T) or false (F)