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. The code has a compile error.
You cannot assign a variable of a supertype to a subtype without explicit casting.
Computer Science & Information Technology
You might also like to view...
The __________ control strategy attempts to shift risk to other assets, other processes, or other organizations.
A. transference B. defense C. acceptance D. mitigation
Computer Science & Information Technology
____, the first commercial browser, was created during the summer of 1994.
A. Internet Explorer B. Netscape Navigator C. Google Chrome D. Mozilla FireFox
Computer Science & Information Technology