Answer:
an accessor function.
Step-by-step explanation:
An accessor function can be regarded as"set and get function" it's function are seen in the accesment of private object member, it give room to know the value of instance variable even though it's not in the same class.
It should be noted that member function that allows the user of the class to change the value in a data member is known as an accessor function.