Which of the statements below is false?
Consider the classes below, declared in the same file:
```
class A
{
int a;
public A()
{
a = 7;
}
}
class B : A
{
int b;
public B()
{
b = 8;
}
}
```
a) Both variables a and b are instance variables.
b) After the constructor for class B is executed, the variable a will have the value 7.
c) After the constructor for class B is executed, the variable b will have the value 8.
d) A reference to class A can be treated as a reference to class B.
d) A reference to class A can be treated as a reference to class B.
You might also like to view...
MC The______ statement causes the __str__ method to be invoked.
a) print "object". b) print objectOfClass. c) objectOfClass.print(). d) None of the above.
The ____________________ computer architecture is characterized by sequential fetch-decode-execute cycles.
Fill in the blank(s) with the appropriate word(s).