FlashcardIntermediate

Getters and Setters

Accessors let you run logic when reading or writing a property.

Question

What are getters and setters in a TypeScript class?

Click to reveal answer