What is the purpose of a setter in a class?
To define a method that performs an action
To retrieve the value of a private property.
To set or modify the value of a private property.
To call a constructor with parameters.
This question is part of this quiz :
TypeScript Object Oriented Programming Quiz