Computer Science, asked by TbiaSamishta, 11 months ago

Write about accessor and mutator methods.

Answers

Answered by aqibkincsem
1

The methods that are used to get the information about an object are called as accessor methods.

An accessor method either inspects or accesses some state from the type without changing the state.

The Mutator methods are a used to control the changes to a variable. They are also known as getter and setter respectively.

Similar questions