Citation:
Setter methods, also known as mutator methods, are a type of method in object-oriented programming that allows the modification or update of the values of instance variables within an object.
These are another name for setter methods and serve the same purpose - modifying instance variable values.
These are variables declared within a class and hold data specific to each instance (object) created from that class.
In contrast to setter (mutator) methods, accessor methods retrieve or get the values stored in instance variables without modifying them.