Suppose you create a class Square to be a subclass of GeometricObject. Analyze the following code:

```
class Square extends GeometricObject {
double length;

Square(double length) {
GeometricObject(length);
}
}```
a. The program compiles fine, but you cannot create an instance of Square because the constructor does not specify the length of the Square.
b. The program has a compile error because you attempted to invoke the GeometricObject class's constructor illegally.
c. The program compiles fine, but it has a runtime error because of invoking the Square class's constructor illegally.

b You have use super() or super(withapproriatearguments) to invoke a super class constructor explicitly.

Computer Science & Information Technology

You might also like to view...

To edit a named range, open the Name Manager

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ________ connects a label to a slice of a pie chart

Fill in the blank(s) with correct word

Computer Science & Information Technology