- Posts: 2
- Joined: Sat Sep 01, 2018 10:53 am
"Accessor methods means the methods that modify or read the instance data fields of a class. Conventionally, the method that reads the field named xxx is named getXxx and the method that sets its value is named setXxx. That is why, accessor methods are also known as getters and setters."
Isn't it true that accessors retrieve data from an object, while mutators modify or set data in an object?
- Site Admin
- Posts: 9892
- Joined: Fri Sep 10, 2010 9:26 pm
Users browsing this forum: No registered users and 2 guests