1017Software EngineeringMedium
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; }?
AAn object of B contains data fields i, j, k, m
BAn object of B contains data fields j, m
CAn object of B contains data fields j, k, m
DAn object of B contains data fields k, m
Correct answer
C. An object of B contains data fields j, k, m
Explanation
The correct answer is An object of B contains data fields j, k, m.