Vidyalelo
PHP · Q16

Object Oriented Concept

Programming · PHP · question 16

Q16

A mutator method is also called as.

A.
Setter
Answer
B.
Accessor
C.
Getter
D.
Destructor

Answer: Option A

Solution

Answer: Option A
Solution:
An accessor method is called getter. The common use of a mutator method is to initialise the value of member variables of a class.