Which of the statements below is false?

```
class A {
int a;
public A() {
a = 7;
}
}
class B extends A {
int b;
public B() {
b = 8;
}
}
```

a. Both variables a and b are instance variables.
b. After the constructor for class B executes, the variable a will have the value 7.
c. After the constructor for class B executes, the variable b will have the value 8.
d. A reference of type A can be treated as a reference of type B.

d. A reference of type A can be treated as a reference of type B.

Computer Science & Information Technology

You might also like to view...

When entering text to be displayed in the column headings of a data table, the text must be enclosed in quotation marks

Indicate whether the statement is true or false

Computer Science & Information Technology

The data dictionary is:

a. A list of definitions of words used in the development of the solution. b. A list of definitions and attributes of the variables used in the solution. c. A table the computer uses internally to define the memory location of the variables. d. A table of values to test the solution of the problem.

Computer Science & Information Technology