Question 9
Answer saved
Flag
question
In Java, what is the purpose of a "setter" method?
a. To get the value of an instance variable
Ob. To modify the value of a private instance variable
c. To create a new instance of a class
d. To initialize an object
Clear my choice