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 ...
sfdcfox's user avatar
  • 481k

Only top scored, non community-wiki answers of a minimum length are eligible