Assume Cylinder is a subtype of Circle. Analyze the following code:

Cylinder cy = new Cylinder(1, 1);
Circle c = cy;

a. The code has a compile error.
b. The code has a runtime error.
c. The code is fine.


c You can assign a variable of a subtype to a supertype.

Computer Science & Information Technology

You might also like to view...

All Access queries use ________ behind the scenes to extract data from tables

A) SQL statement B) Oracle statement C) Sybase statement D) Structured statement

Computer Science & Information Technology

Mutual authentication for multiple services is using hardware to share data between two different devices

Indicate whether the statement is true or false

Computer Science & Information Technology

Switches that use ____ forwarding start sending a frame immediately after reading the destination MAC address into their buffers.

A. cut-through B. store-and-forward C. fragment-free D. adaptive cut-through forwarding

Computer Science & Information Technology

Both VMware vCloud and Microsoft Azure are generally classified as IaaS cloud platforms.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology