Biology, asked by Vikram960, 1 year ago

What are accessors and mutators ? Give an example of each. Explain what are immutable

Answers

Answered by lucky1742
0
Accessors are also known as getters andmutators are also known as setters. If we have declared the variables as private then they would not be accessible by all so we need to use getter and setter methods. AnAccessor method is commonly known as a get method or simply a getter.
Similar questions