Which of the following is a correct example of a getter method in TypeScript?
getProperty { return this.property; }
get getProperty() { return this.property; }
getter getProperty() { return this.property; }
function getProperty() { return this.property; }
This question is part of this quiz :
TypeScript Object Oriented Programming Quiz