Solved

Which of the Options Listed Will Happen If the Following

Question 21

Multiple Choice

Which of the options listed will happen if the following code segment is run, assuming the remainder of the program is coded correctly?
10 public class Circle extends Figure
11 {
12 private int radius;
13 public Circle( )
14 {
15 super( ) ;
16 radius = 0;


A) The default constructor of the Figure class will be called (line 15) .
B) The default constructor of Radius class will set radius to 0.
C) The attempt to instantiate an object of the abstract class will generate a compiler error.
D) All of these are correct.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions