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;
}
```
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.


a The data fields in a superclass are contained in a subclass. Whether the data fields in a superclass can be accessed in a subclass is a visibility issue. A private data field in a superclass cannot be directly accessed in a subclass, but the data field may have the getter or setter methods, which can be used to get or set a data field value.

Computer Science & Information Technology

You might also like to view...

Specialized information systems include a wide range of artificial intelligence systems that can simulate ____ intelligence processes.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A(n) orphanoccurs when only a few beginning lines of an element appear at the bottom of a page, while the bulk of the content is placed on the following page.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The Access action that selects a specified object so that an action can be run that applies to the object.

A. SelectObject B. Apply Filter C. OpenForm D. RunMacro

Computer Science & Information Technology

Summarize the steps used in a WebApp testing strategy.

What will be an ideal response?

Computer Science & Information Technology