S

Sandhya Thakur • 4.08K Points
Extraordinary

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;
}

  • (A) An object of B contains data fields i, j, k, m.
  • (B) An object of B contains data fields j, k, m.
  • (C) An object of B contains data fields j, m.
  • (D) An object of B contains data fields k, m.
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics