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.
The correct answer is C
Quiz, Objective, Multiple Choice Question (MCQ), Test Bank Solution and Short Answers.