Q. Which statements are most accurate regarding the following classes?
class A{
private int i;
protected int j;
}
class B extends A{
private int k;
protected int m;
}
class A{
private int i;
protected int j;
}
class B extends A{
private int k;
protected int m;
}
β
Correct Answer: (B)
An object of B contains data fields j, k, m.