Single Choice Not Set

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

ID: #2107 Declaration and Access Control in Java 1,178 views
Question Info
#2107Q ID
Not SetDifficulty
Declaration and Access Control in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • 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

Explanation

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

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions