Considering the classes below, which description best represents the data fields present in an instance of class B? class A { private int i; protected int j; } class B extends A { private int k; protected int m; }
Explanation
Option A is correct because an object of class B inherits the protected field j from class A and also contains its own private field k and protected field m. The private field i from class A is not accessible in B, so it is not considered part of B's accessible fields.