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...
Which of the following will configure all the span elements with red (#FF0000) text color?
a. span { color: #FF0000; } b. #span { color: #FF0000; } c. .span { color: #FF0000; } d.
Two controls normally found in a Report Footer are the date control and the page number control
Indicate whether the statement is true or false
You can use the Zoom slider to increase or decrease the size of the document onscreen.
Answer the following statement true (T) or false (F)
It is a good idea to consistently use an appropriate prefix for the user interface elements. You might prefix buttons with ____________.
Fill in the blank(s) with the appropriate word(s).