What is an accessor in Java?

A
It's how Java accesses databases.

B
It's what Java classes use to get access to disk files.

C
It's a method that retrieves information from private class attributes.

D
It's a means of accessing the names of attributes in a class.