ate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; }

Question:
ate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; }

1.An object of B contains data fields j, k, m

2.An object of B contains data fields k, m

3.An object of B contains data fields j, m

4.An object of B contains data fields i, j, k, m

Posted Date:-2021-10-25 05:16:02


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!