+ 1
which accessor creates a read-only property?
Dear "SOLOLEARN" I answer this question but your answer is'nt correct! the answer is get but your answer is set.
1 Réponse
0
Hi, the get accessor allows to read the property but it doesn't guarantee that one cannot set it. So, only the set accessor can handle the writing attempts and reject them.