Consider the classes below, declared in the same file:

```
class A
{
int a;
public A()
{
a = 7;
}
}

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

Which of the statements below is false?
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...

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

1. Writing comments should be avoided, especially for large and complex programs. 2. The indentation of statements inside methods, classes, and namespaces is a convention that virtually all programmers follow. 3. The standard Windows close button is the only way to close a running application in Visual Studio. 4. If you double-click an error message in the Error List window, the code editor will highlight and display the line of code that caused the error.

Computer Science & Information Technology

Which leaves a stub behind as a record when separated?

A) all specialty form B) perforated form C) continuous-feed form D) multiple-part form

Computer Science & Information Technology

When the computer's hard drive ____________________, you need a system recovery drive that will boot your computer.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Secure Wi-Fi networks and VPNs use _____ to secure data transferred over a network.

A. ?hotspots B. ?encryption C. ?wireframes D. ?viewports

Computer Science & Information Technology