153k views
3 votes
Encapsulation is a fundamental concept of Object-Oriented design. What type of function is used to obtain the value of a class variable, but not modify it?

a. accessor
b. retriever
c. mutator
d. constructor

User Zarwan
by
8.4k points

1 Answer

4 votes

Answer: a

Step-by-step explanation:

User Bahram
by
9.0k points