MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Computer Programming MCQs
Java concepts and its programming
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; } ?
AA. An object of b contains data fields j, k, m
BB. An object of b contains data fields k, m
CC. An object of b contains data fields j, m
DD. An object of b contains data fields i, j, k, m
Correct Answer:
A. A. An object of b contains data fields j, k, m