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...

In C++, a value can be raised to a power by using

A) the ^ operator. B) the exp operator. C) the power operator. D) the pow function. E) the square function.

Computer Science & Information Technology

You can use Access to create a Web app for sharing data with others through the Internet

Indicate whether the statement is true or false

Computer Science & Information Technology

What is the maximum number of watts that is supported in the IEEE 802.3at standard?

A) 15.4 B) 32.4 C) 50.4 D) 34.5

Computer Science & Information Technology

The Pucker tool is a Liquify tool.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology