Question: Consider the classes below, declared in the same file: class A { int a; public A ( ) { a = 7 ; } }
Consider the classes below, declared in the same file:
class A
int a;
public A
a ;
class B extends A
int b;
public B
b ;
Which of the statements below is false?
Group of answer choices
Both variables a and b are instance variables.
After the constructor for class B executes, the variable a will have the value
After the constructor for class B executes, the variable b will have the value
A reference of type A can be treated as a reference of type B
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
