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. The program has a compile error because you attempted to invoke the GeometricObject class's constructor illegally.
You might also like to view...
A(n) ________ effect highlights an object or text that is already displayed
Fill in the blank(s) with correct word
A free utility, usually called Windows _______________, can be run on a system to see if the hardware and software will work with a newer version of Windows.
Fill in the blank(s) with the appropriate word(s).