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;

// some methods omitted
}
```
a. In the class B, an instance method can only access i, j, k, m.
b. In the class B, an instance method can only access j, k, m.
c. In the class B, an instance method can only access j, m.
d. In the class B, an instance method can only access k, m.

b. In the class B, an instance method can only access j, k, m.

Computer Science & Information Technology

You might also like to view...

What is the output of the following segment of code if the value 4 is input by the user?

``` int num; int total = 0; cout << "Enter a number from 1 to 10: "; cin >> num; switch (num) { case 1: case 2: total = 5; case 3: total = 10; case 4: total = total + 3; case 8: total = total + 6; default: total = total + 4; } cout << total << endl; ``` a. 0 b. 3 c. 13 d. 23 e. None of these

Computer Science & Information Technology

1. How can you differentiate a sans serif typeface from a serif typeface?

What will be an ideal response?

Computer Science & Information Technology