3
votes
Accepted
Is it safe to reference property's directly in getter/setter in apex?
Yes, the method of storing data as in the first example is outlined in the documentation, and fully supported. Other languages have the limitation of needing a backing variable simply because the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
properties × 22apex × 8
lightning-web-components × 5
visualforce × 4
getter × 3
dataextensions × 2
apex-variable × 2
setter × 2
marketing-cloud × 1
javascript × 1
deployment × 1
controller × 1
css × 1
permissions × 1
html × 1
ssjs × 1
sobject × 1
ant × 1
update × 1
url × 1
performance × 1
xml × 1
compile-error × 1
object × 1
images × 1